Blender V4.3
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
17namespace blender::gpu {
18
19class 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:
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
void init()
void end_query() override
Definition vk_query.cc:82
void begin_query() override
Definition vk_query.cc:42
void get_occlusion_result(MutableSpan< uint32_t > r_values) override
Definition vk_query.cc:92
unsigned int uint32_t
Definition stdint.h:80