Blender V4.3
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 31 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 41 of file GPU_select.hh.

◆ id

unsigned int GPUSelectResult::id

The selection identifier matching the value passed in by GPU_select_load_id.

Definition at line 33 of file GPU_select.hh.

Referenced by do_pose_box_select(), gizmo_find_intersected_3d_intern(), gpu_select_pick_end(), gpu_select_query_end(), and blender::draw::select::SelectMap::read_result().


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