Blender V5.0
gpu_select_sample_query.cc File Reference
#include <cstdlib>
#include "GPU_debug.hh"
#include "GPU_framebuffer.hh"
#include "GPU_select.hh"
#include "GPU_state.hh"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BLI_vector.hh"
#include "gpu_backend.hh"
#include "gpu_query.hh"
#include "gpu_select_private.hh"

Go to the source code of this file.

Classes

struct  GPUSelectQueryState

Functions

void gpu_select_query_begin (GPUSelectBuffer *buffer, const rcti *input, const GPUSelectMode mode, int oldhits)
bool gpu_select_query_load_id (uint id)
uint gpu_select_query_end ()

Variables

static GPUSelectQueryState g_query_state = {false}

Detailed Description

Interface for accessing GPU-related methods for selection. The semantics will be similar to glRenderMode(GL_SELECT) since the goal is to maintain compatibility.

Definition in file gpu_select_sample_query.cc.

Function Documentation

◆ gpu_select_query_begin()

◆ gpu_select_query_end()

◆ gpu_select_query_load_id()

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().

Variable Documentation

◆ g_query_state