Skip to content

LiteFX::Rendering::Backends::VulkanBarrier::transition

Inserts an image barrier that blocks access to a sub-resource range of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions the sub-resource into layout.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual void transition(
    IVulkanImage const& image,
    UInt32 level,
    UInt32 levels,
    UInt32 layer,
    UInt32 layers,
    UInt32 plane,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout fromLayout,
    ImageLayout toLayout) override;

Parameters

NameDescription
imageThe image resource to transition.
levelThe base mip-map level of the sub-resource range.
levelsThe number of mip-map levels of the sub-resource range.
layerThe base array layer of the sub-resource range.
layersThe number of array layer of the sub-resource range.
planeThe plane of the sub-resource.
accessBeforeThe access types previous commands have to finish.
accessAfterThe access types that subsequent commands continue with.
fromLayoutSpecifies the layout of an IImage resource.
toLayoutSpecifies the layout of an IImage resource.