Blender
V3.3
source
blender
gpu
metal
mtl_query.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
7
#pragma once
8
9
#include "
BLI_vector.hh
"
10
11
#include "
gpu_query.hh
"
12
#include "
mtl_context.hh
"
13
14
namespace
blender::gpu
{
15
16
class
MTLQueryPool
:
public
QueryPool
{
17
private
:
20
uint32_t
query_issued_;
22
GPUQueryType
type_;
24
bool
initialized_ =
false
;
25
MTLVisibilityResultMode mtl_type_;
26
Vector<gpu::MTLBuffer *>
buffer_;
27
28
void
allocate_buffer();
29
30
public
:
31
MTLQueryPool
();
32
~MTLQueryPool
();
33
34
void
init
(
GPUQueryType
type
)
override
;
35
36
void
begin_query
()
override
;
37
void
end_query
()
override
;
38
39
void
get_occlusion_result
(
MutableSpan<uint32_t>
r_values)
override
;
40
};
41
}
// namespace blender::gpu
BLI_vector.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::Vector
Definition:
BLI_vector.hh:64
blender::gpu::MTLQueryPool
Definition:
mtl_query.hh:16
blender::gpu::MTLQueryPool::begin_query
void begin_query() override
Definition:
mtl_query.mm:57
blender::gpu::MTLQueryPool::MTLQueryPool
MTLQueryPool()
Definition:
mtl_query.mm:17
blender::gpu::MTLQueryPool::init
void init(GPUQueryType type) override
Definition:
mtl_query.mm:48
blender::gpu::MTLQueryPool::end_query
void end_query() override
Definition:
mtl_query.mm:84
blender::gpu::MTLQueryPool::get_occlusion_result
void get_occlusion_result(MutableSpan< uint32_t > r_values) override
Definition:
mtl_query.mm:92
blender::gpu::MTLQueryPool::~MTLQueryPool
~MTLQueryPool()
Definition:
mtl_query.mm:21
blender::gpu::QueryPool
Definition:
gpu_query.hh:20
gpu_query.hh
mtl_context.hh
blender::gpu
Definition:
gpu_backend.hh:15
blender::gpu::GPUQueryType
GPUQueryType
Definition:
gpu_query.hh:16
uint32_t
unsigned int uint32_t
Definition:
stdint.h:80
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1