LiteFX::Rendering::BarrierBuilder::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/rendering_builders.hpp>
constexpr virtual void setupImageBarrier(
IImage& image,
ResourceAccess before,
ResourceAccess after,
ImageLayout layout,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane) = 0;
Parameters¶
| Name | Description |
|---|---|
| image | The image for this barrier. |
| before | The resource access state of the sub-resources in the image to wait for with this barrier. |
| after | The resource access state of the sub-resources in the image to continue with after this barrier. |
| layout | The layout to transition the image sub-resources into. |
| level | The level of the first sub-resource to transition. |
| levels | The number of levels to transition. |
| layer | The layer of the first sub-resource to transition. |
| layers | The number of layers to transition. |
| plane | The plane of the sub-resource to transition. |