Blender V4.3
blender::gpu::VKSubmissionID Struct Reference

#include <vk_resource_tracker.hh>

Public Member Functions

 VKSubmissionID ()=default
 
const VKSubmissionIDoperator= (const VKSubmissionID &other)
 
bool operator== (const VKSubmissionID &other)
 
bool operator!= (const VKSubmissionID &other)
 

Friends

class render_graph::VKRenderGraph
 

Detailed Description

In vulkan multiple commands can be in flight simultaneously.

These commands can share the same resources like descriptor sets or push constants. When between commands these resources are updated a new version of these resources should be created.

When a resource is updated it should check the submission id of the command buffer. If it is different, then the resource can be reused. If the submission id is the same a new version of the resource to now intervene with other commands that uses the resource.

VKSubmissionID is the identifier to keep track if a new submission is being recorded.

Definition at line 44 of file vk_resource_tracker.hh.

Constructor & Destructor Documentation

◆ VKSubmissionID()

blender::gpu::VKSubmissionID::VKSubmissionID ( )
default

Member Function Documentation

◆ operator!=()

bool blender::gpu::VKSubmissionID::operator!= ( const VKSubmissionID & other)
inline

Definition at line 90 of file vk_resource_tracker.hh.

◆ operator=()

const VKSubmissionID & blender::gpu::VKSubmissionID::operator= ( const VKSubmissionID & other)
inline

Definition at line 79 of file vk_resource_tracker.hh.

◆ operator==()

bool blender::gpu::VKSubmissionID::operator== ( const VKSubmissionID & other)
inline

Definition at line 85 of file vk_resource_tracker.hh.

Friends And Related Symbol Documentation

◆ render_graph::VKRenderGraph

friend class render_graph::VKRenderGraph
friend

Definition at line 45 of file vk_resource_tracker.hh.


The documentation for this struct was generated from the following file: