Blender V4.3
gpu_query.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "BLI_span.hh"
12
13namespace blender::gpu {
14
15#define QUERY_MIN_LEN 16
16
20
21class QueryPool {
22 public:
23 virtual ~QueryPool(){};
24
29 virtual void init(GPUQueryType type) = 0;
30
35 virtual void begin_query() = 0;
36 virtual void end_query() = 0;
37
43 virtual void get_occlusion_result(MutableSpan<uint32_t> r_values) = 0;
44};
45
46} // namespace blender::gpu
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:18