Blender V5.0
GPU_select.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2014 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_span.hh"
12#include "BLI_sys_types.h"
13#include "BLI_vector.hh"
14
15struct rcti;
16
28
34 unsigned int id;
42 unsigned int depth;
43};
44
49
53void GPU_select_begin(GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits);
59 const rcti *input,
60 GPUSelectMode mode,
61 int oldhits);
70bool GPU_select_load_id(unsigned int id);
77unsigned int GPU_select_end();
78
79/* Cache selection region. */
80
85
86/* Utilities. */
87
96 uint select_id);
100void GPU_select_buffer_stride_realign(const rcti *src, const rcti *dst, uint *r_buf);
unsigned int uint
const GPUSelectResult * GPU_select_buffer_near(const blender::Span< GPUSelectResult > hit_results)
void GPU_select_cache_end()
void GPU_select_finalize()
void GPU_select_begin(GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits)
bool GPU_select_load_id(unsigned int id)
bool GPU_select_is_cached()
unsigned int GPU_select_end()
void GPU_select_begin_next(GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits)
blender::Vector< GPUSelectResult, 2500 > GPUSelectStorage
Definition GPU_select.hh:45
void GPU_select_cache_load_id()
uint GPU_select_buffer_remove_by_id(blender::MutableSpan< GPUSelectResult > hit_results, uint select_id)
void GPU_select_cache_begin()
GPUSelectMode
Definition GPU_select.hh:18
@ GPU_SELECT_NEAREST_SECOND_PASS
Definition GPU_select.hh:23
@ GPU_SELECT_INVALID
Definition GPU_select.hh:19
@ GPU_SELECT_NEAREST_FIRST_PASS
Definition GPU_select.hh:22
@ GPU_SELECT_PICK_ALL
Definition GPU_select.hh:25
@ GPU_SELECT_ALL
Definition GPU_select.hh:20
@ GPU_SELECT_PICK_NEAREST
Definition GPU_select.hh:26
void GPU_select_buffer_stride_realign(const rcti *src, const rcti *dst, uint *r_buf)
#define input
GPUSelectStorage storage
Definition GPU_select.hh:47
unsigned int id
Definition GPU_select.hh:34
unsigned int depth
Definition GPU_select.hh:42