|
Blender V5.0
|
#include "GPU_select.hh"Go to the source code of this file.
Macros | |
| #define | SELECT_ID_NONE ((uint)0xffffffff) |
Functions | |
| void | gpu_select_pick_begin (GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode) |
| bool | gpu_select_pick_load_id (uint id, bool end) |
| uint | gpu_select_pick_end () |
| void | gpu_select_pick_cache_begin () |
| void | gpu_select_pick_cache_end () |
| bool | gpu_select_pick_is_cached () |
| void | gpu_select_pick_cache_load_id () |
| void | gpu_select_query_begin (GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits) |
| bool | gpu_select_query_load_id (uint id) |
| uint | gpu_select_query_end () |
| void | gpu_select_next_begin (GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode) |
| uint | gpu_select_next_end () |
| int | gpu_select_next_get_pick_area_center () |
| GPUSelectMode | gpu_select_next_get_mode () |
| void | gpu_select_next_set_result (GPUSelectResult *hit_buf, uint hit_len) |
Selection implementations.
Definition in file gpu_select_private.hh.
| #define SELECT_ID_NONE ((uint)0xffffffff) |
Definition at line 48 of file gpu_select_private.hh.
Referenced by depth_buf_malloc(), and gpu_select_load_id_pass_nearest().
| void gpu_select_next_begin | ( | GPUSelectBuffer * | buffer, |
| const rcti * | input, | ||
| GPUSelectMode | mode ) |
Definition at line 30 of file gpu_select_next.cc.
References g_state, and input.
Referenced by gpu_select_begin_ex().
| uint gpu_select_next_end | ( | ) |
Definition at line 78 of file gpu_select_next.cc.
References g_state.
Referenced by GPU_select_end().
| GPUSelectMode gpu_select_next_get_mode | ( | ) |
Definition at line 44 of file gpu_select_next.cc.
References g_state.
Referenced by blender::draw::select::SelectMap::pre_draw().
| int gpu_select_next_get_pick_area_center | ( | ) |
Definition at line 38 of file gpu_select_next.cc.
References BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), and g_state.
Referenced by blender::draw::select::SelectMap::pre_draw().
| void gpu_select_next_set_result | ( | GPUSelectResult * | hit_buf, |
| uint | hit_len ) |
Definition at line 49 of file gpu_select_next.cc.
References BLI_assert_unreachable, blender::MutableSpan< T >::copy_from(), g_state, GPU_SELECT_ALL, GPU_SELECT_INVALID, GPU_SELECT_NEAREST_FIRST_PASS, GPU_SELECT_NEAREST_SECOND_PASS, GPU_SELECT_PICK_ALL, and GPU_SELECT_PICK_NEAREST.
Referenced by blender::draw::select::SelectMap::read_result().
| void gpu_select_pick_begin | ( | GPUSelectBuffer * | buffer, |
| const rcti * | input, | ||
| GPUSelectMode | mode ) |
Definition at line 296 of file gpu_select_pick.cc.
References GPUPickState::all, ALLOC_DEPTHS, BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), DepthBufCache::buf, GPUPickState::buffer, GPUPickState::cache, GPUPickState::clip_readpixels, GPUPickState::clip_rect, depth_buf_malloc(), DEPTH_MAX, GPUPickState::depth_test, GPUPickState::dst, g_pick_state, GPUPickState::gpu, GPU_clear_depth(), GPU_color_mask(), GPU_debug_group_begin(), GPU_DEPTH_LESS_EQUAL, GPU_depth_mask(), GPU_depth_test(), GPU_depth_test_get(), GPU_scissor_get(), GPU_SELECT_PICK_ALL, GPU_viewport(), GPU_viewport_size_get_f(), GPU_write_mask_get(), GPUPickState::hits, GPUPickState::hits_len, GPUPickState::hits_len_alloc, i, input, GPUPickState::is_cached, GPUPickState::is_init, MEM_malloc_arrayN(), MEM_mallocN(), GPUPickState::mode, GPUPickState::nearest, GPUPickState::prev_id, printf, GPUPickState::rect_depth, GPUPickState::rect_depth_test, GPUPickState::rect_id, GPUPickState::rect_len, rect_subregion_stride_calc(), GPUPickState::scissor, GPUPickState::src, GPUPickState::sub_rect, UNPACK4, GPUPickState::use_cache, and GPUPickState::write_mask.
Referenced by gpu_select_begin_ex().
| void gpu_select_pick_cache_begin | ( | ) |
Definition at line 701 of file gpu_select_pick.cc.
References BLI_assert, g_pick_state, and printf.
Referenced by gpu_select_begin_ex().
| void gpu_select_pick_cache_end | ( | ) |
Definition at line 711 of file gpu_select_pick.cc.
References BLI_freelistN(), BLI_listbase_count(), g_pick_state, and printf.
Referenced by GPU_select_cache_end().
| void gpu_select_pick_cache_load_id | ( | ) |
Definition at line 727 of file gpu_select_pick.cc.
References BLI_assert, GPUPickState::bufs, GPUPickState::cache, depth_buf_subrect_depth_any(), depth_buf_subrect_depth_any_filled(), g_pick_state, gpu_select_load_id_pass_all(), gpu_select_load_id_pass_nearest(), GPU_SELECT_PICK_ALL, LISTBASE_FOREACH, printf, and GPUPickState::sub_rect.
Referenced by GPU_select_cache_load_id().
| uint gpu_select_pick_end | ( | ) |
Definition at line 537 of file gpu_select_pick.cc.
References GPUPickState::all, BLI_addtail(), GPUPickState::bufs, GPUPickState::cache, DepthID::depth, GPUSelectResult::depth, depth_cmp(), depth_id_cmp(), GPUPickState::depth_test, GPUPickState::dst, EVAL_TEST, g_pick_state, GPUPickState::gpu, GPU_debug_group_end(), GPU_depth_test(), GPU_SELECT_PICK_ALL, gpu_select_pick_load_id(), GPU_viewport(), GPU_write_mask(), GPUPickState::hits, GPUPickState::hits_len, GPUPickState::hits_len_alloc, i, DepthID::id, GPUSelectResult::id, GPUPickState::is_cached, GPUPickState::is_init, ListBase::last, MEM_freeN(), MEM_mallocN(), MEM_SAFE_FREE, GPUPickState::nearest, GPUPickState::prev_id, printf, GPUPickState::rect_depth, GPUPickState::rect_depth_test, GPUPickState::rect_id, GPUPickState::rect_len, SubRectStride::skip, SubRectStride::span, SubRectStride::span_len, GPUPickState::src, SubRectStride::start, GPUPickState::sub_rect, UNPACK4, GPUPickState::use_cache, GPUPickState::viewport, and GPUPickState::write_mask.
Referenced by GPU_select_end().
| bool gpu_select_pick_is_cached | ( | ) |
Definition at line 722 of file gpu_select_pick.cc.
References g_pick_state.
Referenced by GPU_select_is_cached().
| bool gpu_select_pick_load_id | ( | uint | id, |
| bool | end ) |
Definition at line 477 of file gpu_select_pick.cc.
References BLI_addtail(), DepthBufCache::buf, GPUPickState::bufs, GPUPickState::cache, GPUPickState::clip_readpixels, depth_buf_malloc(), depth_buf_rect_depth_any(), depth_buf_rect_depth_any_filled(), fb(), g_pick_state, GPUPickState::gpu, GPU_clear_depth(), GPU_DATA_UINT, GPU_depth_mask(), GPU_depth_mask_get(), GPU_framebuffer_active_get(), GPU_framebuffer_read_depth(), gpu_select_load_id_pass_all(), gpu_select_load_id_pass_nearest(), GPU_SELECT_PICK_ALL, DepthBufCache::id, GPUPickState::is_init, GPUPickState::prev_id, GPUPickState::rect_depth, GPUPickState::rect_depth_test, GPUPickState::rect_len, GPUPickState::src, UNPACK4, and GPUPickState::use_cache.
Referenced by GPU_select_load_id(), and gpu_select_pick_end().
| void gpu_select_query_begin | ( | GPUSelectBuffer * | buffer, |
| const rcti * | input, | ||
| GPUSelectMode | mode, | ||
| int | oldhits ) |
Definition at line 55 of file gpu_select_sample_query.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), g_query_state, blender::gpu::GPUBackend::get(), GPU_clear_depth(), GPU_color_mask(), GPU_debug_group_begin(), GPU_DEPTH_ALWAYS, GPU_DEPTH_EQUAL, GPU_DEPTH_LESS_EQUAL, GPU_depth_mask(), GPU_depth_test(), GPU_depth_test_get(), blender::gpu::GPU_QUERY_OCCLUSION, GPU_scissor(), GPU_scissor_get(), GPU_scissor_test(), GPU_SELECT_ALL, GPU_SELECT_NEAREST_FIRST_PASS, GPU_SELECT_NEAREST_SECOND_PASS, GPU_viewport(), GPU_viewport_size_get_i(), GPU_write_mask_get(), input, blender::gpu::GPUBackend::querypool_alloc(), UNPACK2, and UNPACK4.
Referenced by gpu_select_begin_ex().
| uint gpu_select_query_end | ( | ) |
Definition at line 136 of file gpu_select_sample_query.cc.
References GPUSelectResult::depth, g_query_state, GPU_debug_group_end(), GPU_depth_test(), GPU_SELECT_NEAREST_SECOND_PASS, GPU_viewport(), GPU_write_mask(), i, GPUSelectResult::id, result, blender::Span< T >::size(), and UNPACK4.
Referenced by GPU_select_end().
| bool gpu_select_query_load_id | ( | uint | id | ) |
Definition at line 111 of file gpu_select_sample_query.cc.
References BLI_assert, g_query_state, and GPU_SELECT_NEAREST_SECOND_PASS.
Referenced by GPU_select_load_id().