Skip to content

LiteFX::Rendering::GraphicsDevice::makeBarrier

Creates a memory barrier instance.

Synopsis

Declared in <litefx/rendering.hpp>

[[nodiscard]] virtual UniquePtr<barrier_type> makeBarrier(
    PipelineStage syncBefore,
    PipelineStage syncAfter) const = 0;

Return Value

The instance of the memory barrier.

Note

The return value should not be discarded.

Parameters

NameDescription
syncBeforeThe pipeline stage(s) all previous commands have to finish before the barrier is executed.
syncAfterThe pipeline stage(s) all subsequent commands are blocked at until the barrier is executed.