Blender
V3.3
source
blender
gpu
intern
gpu_query.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2020 Blender Foundation. All rights reserved. */
3
8
#pragma once
9
10
#include "
BLI_span.hh
"
11
12
namespace
blender::gpu
{
13
14
#define QUERY_MIN_LEN 16
15
16
typedef
enum
GPUQueryType
{
17
GPU_QUERY_OCCLUSION
= 0,
18
}
GPUQueryType
;
19
20
class
QueryPool
{
21
public
:
22
virtual
~QueryPool
(){};
23
28
virtual
void
init
(
GPUQueryType
type
) = 0;
29
34
virtual
void
begin_query
() = 0;
35
virtual
void
end_query
() = 0;
36
42
virtual
void
get_occlusion_result
(
MutableSpan<uint32_t>
r_values) = 0;
43
};
44
45
}
// namespace blender::gpu
BLI_span.hh
type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Definition:
GPU_legacy_stubs.h:151
blender::MutableSpan
Definition:
BLI_span.hh:457
blender::gpu::QueryPool
Definition:
gpu_query.hh:20
blender::gpu::QueryPool::~QueryPool
virtual ~QueryPool()
Definition:
gpu_query.hh:22
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:
gpu_backend.hh:15
blender::gpu::GPUQueryType
GPUQueryType
Definition:
gpu_query.hh:16
blender::gpu::GPU_QUERY_OCCLUSION
@ GPU_QUERY_OCCLUSION
Definition:
gpu_query.hh:17
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1