|
Blender V4.3
|
Public Attributes | ||
| GPUSelectBuffer * | buffer | |
| eGPUSelectMode | mode | |
| struct { | ||
| DepthBufCache * rect_depth | ||
| DepthBufCache * rect_depth_test | ||
| int clip_readpixels [4] | ||
| bool is_init | ||
| uint prev_id | ||
| } | gpu | |
| struct { | ||
| rcti clip_rect | ||
| uint rect_len | ||
| } | src | |
| struct { | ||
| rcti clip_rect | ||
| uint rect_len | ||
| } | dst | |
| bool | use_cache | |
| bool | is_cached | |
| struct { | ||
| SubRectStride sub_rect | ||
| ListBase bufs | ||
| } | cache | |
| union { | ||
| struct { | ||
| DepthID * hits | ||
| uint hits_len | ||
| uint hits_len_alloc | ||
| } all | ||
| struct { | ||
| uint * rect_id | ||
| } nearest | ||
| }; | ||
| int | viewport [4] | |
| int | scissor [4] | |
| eGPUWriteMask | write_mask | |
| eGPUDepthTest | depth_test | |
Depth sorting.
Definition at line 228 of file gpu_select_pick.cc.
| union { ... } GPUPickState |
Picking methods.
| struct { ... } GPUPickState::all |
Referenced by gpu_select_load_id_pass_all(), gpu_select_pick_begin(), and gpu_select_pick_end().
| GPUSelectBuffer* GPUPickState::buffer |
Cache on initialization.
Definition at line 230 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), and gpu_select_pick_end().
| ListBase GPUPickState::bufs |
List of DepthBufCache, sized of 'src.clip_rect'.
Definition at line 269 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_cache_end(), gpu_select_pick_cache_load_id(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| struct { ... } GPUPickState::cache |
| int GPUPickState::clip_readpixels[4] |
Pass to GPU_framebuffer_read_depth(x, y, w, h).
Definition at line 242 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), and gpu_select_pick_load_id().
| rcti GPUPickState::clip_rect |
Definition at line 254 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin().
| eGPUDepthTest GPUPickState::depth_test |
Definition at line 291 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), and gpu_select_pick_end().
| struct { ... } GPUPickState::dst |
| struct { ... } GPUPickState::gpu |
GPU drawing, never use when is_cached == true.
Referenced by gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| DepthID* GPUPickState::hits |
Definition at line 276 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_all(), gpu_select_pick_begin(), and gpu_select_pick_end().
| uint GPUPickState::hits_len |
Definition at line 277 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_all(), gpu_select_pick_begin(), and gpu_select_pick_end().
| uint GPUPickState::hits_len_alloc |
Definition at line 278 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_all(), gpu_select_pick_begin(), and gpu_select_pick_end().
| bool GPUPickState::is_cached |
Definition at line 260 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_all(), gpu_select_load_id_pass_nearest(), gpu_select_pick_begin(), gpu_select_pick_cache_begin(), gpu_select_pick_cache_end(), gpu_select_pick_cache_load_id(), gpu_select_pick_end(), and gpu_select_pick_is_cached().
| bool GPUPickState::is_init |
Set after first draw.
Definition at line 245 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| eGPUSelectMode GPUPickState::mode |
Mode of this operation.
Definition at line 232 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), gpu_select_pick_cache_load_id(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| struct { ... } GPUPickState::nearest |
| uint GPUPickState::prev_id |
Definition at line 246 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| DepthBufCache* GPUPickState::rect_depth |
The current depth, accumulated while drawing.
Definition at line 237 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| DepthBufCache* GPUPickState::rect_depth_test |
Scratch buffer, avoid allocations every time (when not caching).
Definition at line 239 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| uint* GPUPickState::rect_id |
Definition at line 283 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_nearest(), gpu_select_pick_begin(), and gpu_select_pick_end().
| uint GPUPickState::rect_len |
Definition at line 255 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_all(), gpu_select_load_id_pass_nearest(), gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| int GPUPickState::scissor[4] |
Definition at line 289 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin().
| struct { ... } GPUPickState::src |
src: data stored in 'cache' and 'gpu', dst: use when cached region is smaller (where src -> dst isn't 1:1).
Referenced by gpu_select_load_id_pass_all(), gpu_select_load_id_pass_nearest(), gpu_select_pick_begin(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| SubRectStride GPUPickState::sub_rect |
Cleanup used for iterating over both source and destination buffers: src.clip_rect -> dst.clip_rect.
Definition at line 266 of file gpu_select_pick.cc.
Referenced by gpu_select_load_id_pass_all(), gpu_select_load_id_pass_nearest(), gpu_select_pick_begin(), gpu_select_pick_cache_load_id(), and gpu_select_pick_end().
| bool GPUPickState::use_cache |
Store cache between GPU_select_cache_begin/end
Definition at line 259 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), gpu_select_pick_cache_begin(), gpu_select_pick_cache_end(), gpu_select_pick_end(), and gpu_select_pick_load_id().
| int GPUPickState::viewport[4] |
Previous state to restore after drawing.
Definition at line 288 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_end().
| eGPUWriteMask GPUPickState::write_mask |
Definition at line 290 of file gpu_select_pick.cc.
Referenced by gpu_select_pick_begin(), and gpu_select_pick_end().