Skip to content

LiteFX::Rendering::IBarrier::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/rendering_api.hpp>

[[dllimport, dllexport]] constexpr void transition(
    IImage const& image,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout layout);

Parameters

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