Skip to content

LiteFX::Rendering::Backends::DirectX12BarrierBuilder::setupBufferBarrier

Sets up the resource access states to wait for and to continue with for a specific buffer with the barrier to be built.

Synopsis

Declared in <litefx/backends/dx12_builders.hpp>

[[dllexport]] virtual void setupBufferBarrier(
    IBuffer& buffer,
    ResourceAccess before,
    ResourceAccess after) override;

Parameters

NameDescription
bufferThe buffer for which the barrier blocks.
beforeThe resource access state of all resources to wait for with this barrier.
afterThe resource access state of all resources to continue with after this barrier.