Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::vulkan::TextureSyncState Struct Reference

The synchronization state a texture is left in, as the backend's bookkeeping records it. More...

#include "donner/gpu/vulkan/VulkanResourceState.h"

Public Member Functions

bool operator== (const TextureSyncState &other) const =default
 Equality operator.

Public Attributes

VkImageLayout layout = VK_IMAGE_LAYOUT_UNDEFINED
 Current image layout.
VkPipelineStageFlags stage = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT
 Stage that last touched it.
VkAccessFlags access = 0
 Access that last touched it.

Detailed Description

The synchronization state a texture is left in, as the backend's bookkeeping records it.

The stage and access describe what last touched the image, which is what a later barrier names as its source scope. A freshly created texture has touched nothing, so it carries the top-of-pipe stage and an empty access mask: a barrier out of that state waits for nothing, which is correct rather than merely permissive.

Member Function Documentation

◆ operator==()

bool donner::gpu::vulkan::TextureSyncState::operator== ( const TextureSyncState & other) const
default

Equality operator.

Parameters
otherState to compare against.

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