Skip to content

LiteFX::Rendering::Backends::DirectX12CommandBuffer::makeBarrier

Creates a new barrier instance.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, nodiscard, dllexport]] virtual UniquePtr<DirectX12Barrier> makeBarrier(
    PipelineStage syncBefore,
    PipelineStage syncAfter) const override;

Return Value

The instance of the 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.