Blender  V3.3
gpu_query.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2020 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "BLI_span.hh"
11 
12 namespace blender::gpu {
13 
14 #define QUERY_MIN_LEN 16
15 
16 typedef enum GPUQueryType {
19 
20 class QueryPool {
21  public:
22  virtual ~QueryPool(){};
23 
28  virtual void init(GPUQueryType type) = 0;
29 
34  virtual void begin_query() = 0;
35  virtual void end_query() = 0;
36 
42  virtual void get_occlusion_result(MutableSpan<uint32_t> r_values) = 0;
43 };
44 
45 } // 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
virtual void begin_query()=0
virtual void init(GPUQueryType type)=0
virtual void get_occlusion_result(MutableSpan< uint32_t > r_values)=0
virtual void end_query()=0
@ GPU_QUERY_OCCLUSION
Definition: gpu_query.hh:17