Blender V5.3
gpu_select.cc File Reference
#include <cstdlib>
#include <cstring>
#include "GPU_select.hh"
#include "BLI_rect.hh"
#include "BLI_utildefines.hh"
#include "gpu_select_private.hh"

Go to the source code of this file.

Classes

struct  blender::GPUSelectState

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Public API
static void blender::gpu_select_begin_ex (GPUSelectBuffer *buffer, const rcti *input, const int radius, GPUSelectMode mode, int oldhits, bool use_select_next)
void blender::GPU_select_begin_next (GPUSelectBuffer *buffer, const rcti *input, int radius, GPUSelectMode mode, int oldhits)
void blender::GPU_select_begin (GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits)
bool blender::GPU_select_load_id (unsigned int id)
unsigned int blender::GPU_select_end ()
Caching

Support multiple begin/end's reusing depth buffers.

void blender::GPU_select_cache_begin ()
void blender::GPU_select_cache_load_id ()
void blender::GPU_select_cache_end ()
bool blender::GPU_select_is_cached ()
Utilities
int blender::gpu_select_buffer_depth_id_cmp (const void *sel_a_p, const void *sel_b_p)
const GPUSelectResult * blender::GPU_select_buffer_near (const Span< GPUSelectResult > hit_results)
uint blender::GPU_select_buffer_remove_by_id (MutableSpan< GPUSelectResult > hit_results, uint select_id)
void blender::GPU_select_buffer_stride_realign (const rcti *src, const rcti *dst, uint *r_buf)

Internal Types

enum  blender::GPUSelectAlgo { blender::ALGO_SAMPLE_QUERY = 1 , blender::ALGO_DEPTH_PICK = 2 , blender::ALGO_SELECT_NEXT = 3 }
static GPUSelectState blender::g_select_state = {false}

Detailed Description

Interface for accessing GPU-related methods for selection. The semantics are similar to glRenderMode(GL_SELECT) from older OpenGL versions.

Definition in file gpu_select.cc.