Blender
V3.3
|
#include <gpu_query.hh>
Public Member Functions | |
virtual | ~QueryPool () |
virtual void | init (GPUQueryType type)=0 |
virtual void | begin_query ()=0 |
virtual void | end_query ()=0 |
virtual void | get_occlusion_result (MutableSpan< uint32_t > r_values)=0 |
Definition at line 20 of file gpu_query.hh.
|
inlinevirtual |
Definition at line 22 of file gpu_query.hh.
|
pure virtual |
Will start and end the query at this index inside the pool. The pool will resize automatically.
Implemented in blender::gpu::GLQueryPool, and blender::gpu::MTLQueryPool.
Referenced by gpu_select_query_load_id().
|
pure virtual |
Implemented in blender::gpu::GLQueryPool, and blender::gpu::MTLQueryPool.
Referenced by gpu_select_query_end(), and gpu_select_query_load_id().
|
pure virtual |
Must be fed with a buffer large enough to contain all the queries issued. IMPORTANT: Result for each query can be either binary or represent the number of samples drawn.
Implemented in blender::gpu::GLQueryPool, and blender::gpu::MTLQueryPool.
Referenced by gpu_select_query_end().
|
pure virtual |
Will start and end the query at this index inside the pool. The pool will resize automatically but does not support sparse allocation. So prefer using consecutive indices.
Implemented in blender::gpu::GLQueryPool, and blender::gpu::MTLQueryPool.
Referenced by gpu_select_query_begin().