Blender V4.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
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:
22 uint32_t query_issued_;
24 GPUQueryType type_;
26 bool initialized_ = false;
27 MTLVisibilityResultMode mtl_type_;
29
30 void allocate();
31
32 public:
35
36 void init(GPUQueryType type) override;
37
38 void begin_query() override;
39 void end_query() override;
40
41 void get_occlusion_result(MutableSpan<uint32_t> r_values) override;
42};
43} // namespace blender::gpu
void init()
void begin_query() override
Definition mtl_query.mm:64
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 stdint.h:80