Blender
V3.3
|
#include <gl_query.hh>
Public Member Functions | |
~GLQueryPool () | |
void | init (GPUQueryType type) override |
void | begin_query () override |
void | end_query () override |
void | get_occlusion_result (MutableSpan< uint32_t > r_values) override |
![]() | |
virtual | ~QueryPool () |
Definition at line 18 of file gl_query.hh.
blender::gpu::GLQueryPool::~GLQueryPool | ( | ) |
Definition at line 14 of file gl_query.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
overridevirtual |
Will start and end the query at this index inside the pool. The pool will resize automatically.
Implements blender::gpu::QueryPool.
Definition at line 35 of file gl_query.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::capacity(), blender::io::obj::chunk_size, QUERY_CHUNCK_LEN, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
overridevirtual |
Implements blender::gpu::QueryPool.
Definition at line 47 of file gl_query.cc.
|
overridevirtual |
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.
Implements blender::gpu::QueryPool.
Definition at line 53 of file gl_query.cc.
References BLI_assert, and blender::MutableSpan< T >::size().
|
overridevirtual |
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.
Implements blender::gpu::QueryPool.
Definition at line 19 of file gl_query.cc.
References BLI_assert, blender::gpu::to_gl(), and type.