Blender  V3.3
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_;
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
_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
void begin_query() override
Definition: mtl_query.mm:57
void init(GPUQueryType type) override
Definition: mtl_query.mm:48
void end_query() override
Definition: mtl_query.mm:84
void get_occlusion_result(MutableSpan< uint32_t > r_values) override
Definition: mtl_query.mm:92
unsigned int uint32_t
Definition: stdint.h:80