LiteFX::Rendering::Backends::DirectX12Device::makeBarrier¶
Creates a memory 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 memory barrier.
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| syncBefore | The pipeline stage(s) all previous commands have to finish before the barrier is executed. |
| syncAfter | The pipeline stage(s) all subsequent commands are blocked at until the barrier is executed. |