Blender
V4.3
source
blender
gpu
intern
gpu_query.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2020 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
#include "
BLI_span.hh
"
12
13
namespace
blender::gpu
{
14
15
#define QUERY_MIN_LEN 16
16
17
enum
GPUQueryType
{
18
GPU_QUERY_OCCLUSION
= 0,
19
};
20
21
class
QueryPool
{
22
public
:
23
virtual
~QueryPool
(){};
24
29
virtual
void
init
(
GPUQueryType
type) = 0;
30
35
virtual
void
begin_query
() = 0;
36
virtual
void
end_query
() = 0;
37
43
virtual
void
get_occlusion_result
(
MutableSpan<uint32_t>
r_values) = 0;
44
};
45
46
}
// namespace blender::gpu
BLI_span.hh
blender::MutableSpan
Definition
BLI_span.hh:444
blender::gpu::QueryPool
Definition
gpu_query.hh:21
blender::gpu::QueryPool::~QueryPool
virtual ~QueryPool()
Definition
gpu_query.hh:23
blender::gpu::QueryPool::begin_query
virtual void begin_query()=0
blender::gpu::QueryPool::init
virtual void init(GPUQueryType type)=0
blender::gpu::QueryPool::get_occlusion_result
virtual void get_occlusion_result(MutableSpan< uint32_t > r_values)=0
blender::gpu::QueryPool::end_query
virtual void end_query()=0
blender::gpu
Definition
blf_internal_types.hh:23
blender::gpu::GPUQueryType
GPUQueryType
Definition
gpu_query.hh:17
blender::gpu::GPU_QUERY_OCCLUSION
@ GPU_QUERY_OCCLUSION
Definition
gpu_query.hh:18
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0