|
Blender V5.0
|
#include <vk_device.hh>
Inherits blender::NonCopyable, and blender::NonMovable.
Public Member Functions | |
VKThreadData | |
| VKThreadData (VKDevice &device, pthread_t thread_id) | |
| Public Member Functions inherited from blender::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable &&other)=default | |
| NonCopyable & | operator= (NonCopyable &&other)=default |
Public Attributes | |
| pthread_t | thread_id |
| VKDescriptorPools | descriptor_pools |
| VKDescriptorSetTracker | descriptor_set |
| int32_t | rendering_depth = 0 |
Shared resources between contexts that run in the same thread.
Definition at line 115 of file vk_device.hh.
| blender::gpu::VKThreadData::VKThreadData | ( | VKDevice & | device, |
| pthread_t | thread_id ) |
Definition at line 450 of file vk_device.cc.
References descriptor_pools, and thread_id.
| VKDescriptorPools blender::gpu::VKThreadData::descriptor_pools |
Definition at line 119 of file vk_device.hh.
Referenced by VKThreadData().
| VKDescriptorSetTracker blender::gpu::VKThreadData::descriptor_set |
Definition at line 120 of file vk_device.hh.
| int32_t blender::gpu::VKThreadData::rendering_depth = 0 |
The current rendering depth.
GPU_rendering_begin can be called multiple times forming a hierarchy. The same resource pool should be used for the whole hierarchy. rendering_depth is increased for every GPU_rendering_begin and decreased when GPU_rendering_end is called. Resources pools are cycled when the rendering_depth set to 0.
Definition at line 130 of file vk_device.hh.
Referenced by blender::gpu::VKBackend::render_begin(), and blender::gpu::VKBackend::render_end().
| pthread_t blender::gpu::VKThreadData::thread_id |
Thread ID this instance belongs to.
Definition at line 118 of file vk_device.hh.
Referenced by VKThreadData().