Blender V5.0
blender::gpu::VKThreadData Class Reference

#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
NonCopyableoperator= (const NonCopyable &other)=delete
 NonCopyable ()=default
 NonCopyable (NonCopyable &&other)=default
NonCopyableoperator= (NonCopyable &&other)=default

Public Attributes

pthread_t thread_id
VKDescriptorPools descriptor_pools
VKDescriptorSetTracker descriptor_set
int32_t rendering_depth = 0

Detailed Description

Shared resources between contexts that run in the same thread.

Definition at line 115 of file vk_device.hh.

Constructor & Destructor Documentation

◆ VKThreadData()

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.

Member Data Documentation

◆ descriptor_pools

VKDescriptorPools blender::gpu::VKThreadData::descriptor_pools

Definition at line 119 of file vk_device.hh.

Referenced by VKThreadData().

◆ descriptor_set

VKDescriptorSetTracker blender::gpu::VKThreadData::descriptor_set

Definition at line 120 of file vk_device.hh.

◆ rendering_depth

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().

◆ thread_id

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().


The documentation for this class was generated from the following files: