Skip to content

LiteFX::Rendering::Backends::DirectX12BarrierBuilder::setupImageBarrier

Sets up the image layout transition and resource access states to wait for and continue with the barrier to be built.

Synopsis

Declared in <litefx/backends/dx12_builders.hpp>

[[dllexport]] virtual void setupImageBarrier(
    IImage& image,
    ResourceAccess before,
    ResourceAccess after,
    ImageLayout layout,
    UInt32 level,
    UInt32 levels,
    UInt32 layer,
    UInt32 layers,
    UInt32 plane) override;

Parameters

NameDescription
imageThe image for this barrier.
beforeThe resource access state of the sub-resources in the image to wait for with this barrier.
afterThe resource access state of the sub-resources in the image to continue with after this barrier.
layoutThe layout to transition the image sub-resources into.
levelThe level of the first sub-resource to transition.
levelsThe number of levels to transition.
layerThe layer of the first sub-resource to transition.
layersThe number of layers to transition.
planeThe plane of the sub-resource to transition.