Blender V5.3
mtl_query.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_vector.hh"
12
13#include "gpu_query.hh"
14#include "mtl_context.hh"
15
16namespace blender::gpu {
17
18class MTLQueryPool : public QueryPool {
19 private:
24 uint32_t query_issued_;
26 GPUQueryType type_;
28 bool initialized_ = false;
29 MTLVisibilityResultMode mtl_type_;
31
32 void allocate();
33
34 public:
36 ~MTLQueryPool() override;
37
38 void init(GPUQueryType type) override;
39
40 void begin_query() override;
41 void end_query() override;
42
43 void get_occlusion_result(MutableSpan<uint32_t> r_values) override;
44};
45} // namespace blender::gpu
void begin_query() override
Definition mtl_query.mm:64
void init(GPUQueryType type) override
Definition mtl_query.mm:55
void end_query() override
Definition mtl_query.mm:91
void get_occlusion_result(MutableSpan< uint32_t > r_values) override
Definition mtl_query.mm:99
unsigned int uint32_t
Definition BKE_text.h:81