Blender
V4.3
source
blender
gpu
vulkan
vk_query.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2022 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
#include "
BLI_vector.hh
"
12
13
#include "
gpu_query.hh
"
14
15
#include "
vk_common.hh
"
16
17
namespace
blender::gpu
{
18
19
class
VKQueryPool
:
public
QueryPool
{
20
const
uint32_t
query_chunk_len_ = 256;
21
Vector<VkQueryPool>
vk_query_pools_;
22
VkQueryType vk_query_type_;
23
uint32_t
queries_issued_ = 0;
24
25
protected
:
26
~VKQueryPool
();
27
28
public
:
29
void
init
(
GPUQueryType
type)
override
;
30
void
begin_query
()
override
;
31
void
end_query
()
override
;
32
void
get_occlusion_result
(
MutableSpan<uint32_t>
r_values)
override
;
33
34
private
:
35
uint32_t
query_index_in_pool()
const
;
36
};
37
38
}
// namespace blender::gpu
BLI_vector.hh
init
void init()
blender::MutableSpan
Definition
BLI_span.hh:444
blender::Vector
Definition
BLI_vector.hh:65
blender::gpu::QueryPool
Definition
gpu_query.hh:21
blender::gpu::VKQueryPool
Definition
vk_query.hh:19
blender::gpu::VKQueryPool::~VKQueryPool
~VKQueryPool()
Definition
vk_query.cc:18
blender::gpu::VKQueryPool::end_query
void end_query() override
Definition
vk_query.cc:82
blender::gpu::VKQueryPool::begin_query
void begin_query() override
Definition
vk_query.cc:42
blender::gpu::VKQueryPool::get_occlusion_result
void get_occlusion_result(MutableSpan< uint32_t > r_values) override
Definition
vk_query.cc:92
gpu_query.hh
blender::gpu
Definition
blf_internal_types.hh:23
blender::gpu::GPUQueryType
GPUQueryType
Definition
gpu_query.hh:17
uint32_t
unsigned int uint32_t
Definition
stdint.h:80
vk_common.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0