Blender V5.0
GPUSelectResult Struct Reference

#include <GPU_select.hh>

Public Attributes

unsigned int id
unsigned int depth

Detailed Description

The result of calling GPU_select_begin & GPU_select_end.

Definition at line 32 of file GPU_select.hh.

Member Data Documentation

◆ depth

unsigned int GPUSelectResult::depth

The nearest depth.

  • Only supported by picking modes (GPU_SELECT_PICK_ALL and GPU_SELECT_PICK_NEAREST) since occlusion quires don't provide a convenient way of accessing the depth-buffer.
  • OpenGL's GL_SELECT supported both near and far depths, this has not been included as Blender doesn't need this however support could be added.

Definition at line 42 of file GPU_select.hh.

Referenced by get_nearest_editbonepoint(), gpu_select_buffer_depth_id_cmp(), gpu_select_pick_end(), gpu_select_query_end(), and blender::draw::select::SelectMap::read_result().

◆ id


The documentation for this struct was generated from the following file: