|
Blender V4.3
|
#include <cfloat>#include "BLI_rect.h"#include "BLI_span.hh"#include "GPU_select.hh"#include "gpu_select_private.hh"Go to the source code of this file.
Classes | |
| struct | GPUSelectNextState |
Functions | |
| void | gpu_select_next_begin (GPUSelectBuffer *buffer, const rcti *input, eGPUSelectMode mode) |
| int | gpu_select_next_get_pick_area_center () |
| eGPUSelectMode | gpu_select_next_get_mode () |
| void | gpu_select_next_set_result (GPUSelectResult *hit_buf, uint hit_len) |
| uint | gpu_select_next_end () |
Variables | |
| static GPUSelectNextState | g_state = {} |
Glue to make the new Select-Next engine work with the old GPU select API.
Definition in file gpu_select_next.cc.
| void gpu_select_next_begin | ( | GPUSelectBuffer * | buffer, |
| const rcti * | input, | ||
| eGPUSelectMode | mode ) |
Definition at line 32 of file gpu_select_next.cc.
References GPUSelectNextState::buffer, g_state, GPUSelectNextState::mode, and GPUSelectNextState::rect.
Referenced by gpu_select_begin_ex().
| uint gpu_select_next_end | ( | ) |
Definition at line 81 of file gpu_select_next.cc.
References g_state, and GPUSelectNextState::hits.
Referenced by GPU_select_end().
| eGPUSelectMode gpu_select_next_get_mode | ( | ) |
Definition at line 46 of file gpu_select_next.cc.
References g_state, and GPUSelectNextState::mode.
Referenced by blender::draw::select::SelectMap::begin_sync().
| int gpu_select_next_get_pick_area_center | ( | ) |
Definition at line 40 of file gpu_select_next.cc.
References BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), g_state, and GPUSelectNextState::rect.
Referenced by blender::draw::select::SelectMap::begin_sync().
| void gpu_select_next_set_result | ( | GPUSelectResult * | hit_buf, |
| uint | hit_len ) |
Definition at line 51 of file gpu_select_next.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), GPUSelectNextState::buffer, blender::MutableSpan< T >::copy_from(), g_state, GPU_SELECT_ALL, GPU_SELECT_NEAREST_FIRST_PASS, GPU_SELECT_NEAREST_SECOND_PASS, GPU_SELECT_PICK_ALL, GPU_SELECT_PICK_NEAREST, GPUSelectNextState::hits, GPUSelectNextState::mode, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and GPUSelectBuffer::storage.
Referenced by blender::draw::select::SelectMap::read_result().
|
static |
Definition at line 30 of file gpu_select_next.cc.
Referenced by gpu_select_next_begin(), gpu_select_next_end(), gpu_select_next_get_mode(), gpu_select_next_get_pick_area_center(), and gpu_select_next_set_result().