Blender V5.3
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.hh"
13#include "BLI_vector.hh"
14
15namespace blender {
16
17struct rcti;
18
30
36 unsigned int id;
44 unsigned int depth;
45};
46
51
55void GPU_select_begin(GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits);
61 GPUSelectBuffer *buffer, const rcti *input, int radius, GPUSelectMode mode, 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
99int gpu_select_buffer_depth_id_cmp(const void *sel_a_p, const void *sel_b_p);
104void GPU_select_buffer_stride_realign(const rcti *src, const rcti *dst, uint *r_buf);
105
106} // namespace blender
BMesh Iterators.
unsigned int uint
Definition BKE_text.h:55
bool GPU_select_load_id(unsigned int id)
@ GPU_SELECT_INVALID
Definition GPU_select.hh:21
@ GPU_SELECT_PICK_ALL
Definition GPU_select.hh:27
@ GPU_SELECT_PICK_NEAREST
Definition GPU_select.hh:28
@ GPU_SELECT_NEAREST_SECOND_PASS
Definition GPU_select.hh:25
@ GPU_SELECT_ALL
Definition GPU_select.hh:22
@ GPU_SELECT_NEAREST_FIRST_PASS
Definition GPU_select.hh:24
void GPU_select_cache_load_id()
void GPU_select_begin_next(GPUSelectBuffer *buffer, const rcti *input, int radius, GPUSelectMode mode, int oldhits)
void GPU_select_buffer_stride_realign(const rcti *src, const rcti *dst, uint *r_buf)
unsigned int GPU_select_end()
int gpu_select_buffer_depth_id_cmp(const void *sel_a_p, const void *sel_b_p)
uint GPU_select_buffer_remove_by_id(MutableSpan< GPUSelectResult > hit_results, uint select_id)
void GPU_select_cache_end()
void GPU_select_finalize()
Vector< GPUSelectResult, 2500 > GPUSelectStorage
Definition GPU_select.hh:47
bool GPU_select_is_cached()
const GPUSelectResult * GPU_select_buffer_near(const Span< GPUSelectResult > hit_results)
void GPU_select_begin(GPUSelectBuffer *buffer, const rcti *input, GPUSelectMode mode, int oldhits)
void GPU_select_cache_begin()
GPUSelectStorage storage
Definition GPU_select.hh:49