|
Blender V5.0
|
#include <vk_query.hh>
Inherits blender::gpu::QueryPool.
Public Member Functions | |
| void | init (GPUQueryType type) override |
| void | begin_query () override |
| void | end_query () override |
| void | get_occlusion_result (MutableSpan< uint32_t > r_values) override |
| Public Member Functions inherited from blender::gpu::QueryPool | |
| virtual | ~QueryPool ()=default |
Protected Member Functions | |
| ~VKQueryPool () | |
Definition at line 19 of file vk_query.hh.
|
protected |
Definition at line 17 of file vk_query.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKBackend::get(), and blender::gpu::VKDevice::vk_handle().
|
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 40 of file vk_query.cc.
References begin_query(), BLI_assert, blender::gpu::VKBackend::device, blender::gpu::render_graph::VKResetQueryPoolData::first_query, blender::gpu::VKBackend::get(), blender::gpu::VKContext::get(), blender::gpu::render_graph::VKResetQueryPoolData::query_count, blender::gpu::VKDevice::vk_handle(), and blender::gpu::render_graph::VKResetQueryPoolData::vk_query_pool.
Referenced by begin_query().
|
overridevirtual |
Implements blender::gpu::QueryPool.
Definition at line 79 of file vk_query.cc.
References end_query(), and blender::gpu::VKContext::get().
Referenced by end_query().
|
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 89 of file vk_query.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKBackend::get(), blender::gpu::VKContext::get(), max_ii(), min_ii(), blender::gpu::RENEW_RENDER_GRAPH, blender::gpu::SUBMIT, blender::gpu::VKDevice::vk_handle(), and blender::gpu::WAIT_FOR_COMPLETION.
|
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 33 of file vk_query.cc.
References BLI_assert, and blender::gpu::to_vk_query_type().