Skip to content

LiteFX::Rendering::IBarrier::transition

Inserts a buffer barrier that blocks access to buffer of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] constexpr void transition(
    IBuffer const& buffer,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter);

Parameters

NameDescription
bufferThe buffer resource to transition.
accessBeforeThe access types previous commands have to finish.
accessAfterThe access types that subsequent commands continue with.