Skip to content

LiteFX::Rendering::IBarrier::transition

Inserts a buffer barrier that blocks access to a buffers element 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,
    UInt32 element,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter);

Description

Due to driver restrictions, this is overload is currently redundant, but might be available in the future. Currently, calling this method ignores the element parameter and transitions the whole buffer.

Parameters

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