Skip to content

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

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

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual void transition(
    IVulkanImage const& image,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout fromLayout,
    ImageLayout toLayout) override;

Description

This overload let's you explicitly specify the fromLayout. This is required, if you use any external transition mechanism that causes the engine to lose track of the image layout. If you are not running into issues with the other overloads, you probably do not want to call this method.

Parameters

NameDescription
imageThe image resource to transition.
accessBeforeThe access types previous commands have to finish.
accessAfterThe access types that subsequent commands continue with.
fromLayoutThe image layout to transition from.
toLayoutThe image layout to transition into.