Blender V4.5
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
54 const rcti *input,
55 eGPUSelectMode mode,
56 int oldhits);
62 const rcti *input,
63 eGPUSelectMode mode,
64 int oldhits);
73bool GPU_select_load_id(unsigned int id);
80unsigned int GPU_select_end();
81
82/* Cache selection region. */
83
88
89/* Utilities. */
90
99 uint select_id);
103void 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()
eGPUSelectMode
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_finalize()
bool GPU_select_load_id(unsigned int id)
bool GPU_select_is_cached()
unsigned int GPU_select_end()
blender::Vector< GPUSelectResult, 2500 > GPUSelectStorage
Definition GPU_select.hh:45
void GPU_select_begin(GPUSelectBuffer *buffer, const rcti *input, eGPUSelectMode mode, int oldhits)
void GPU_select_cache_load_id()
void GPU_select_begin_next(GPUSelectBuffer *buffer, const rcti *input, eGPUSelectMode mode, int oldhits)
uint GPU_select_buffer_remove_by_id(blender::MutableSpan< GPUSelectResult > hit_results, uint select_id)
void GPU_select_cache_begin()
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