Blender  V3.3
Public Attributes | List of all members
GPUSelectResult Struct Reference

#include <GPU_select.h>

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.h.

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.h.

Referenced by gizmo_find_intersected_3d_intern(), gpu_select_pick_end(), and gpu_select_query_end().

◆ id

unsigned int GPUSelectResult::id

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