LiteFX::Rendering::BarrierBuilder::ImageBarrierBuilder::subresource¶
Specifies the sub-resource to block and transition when executing the barrier.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
constexpr ImageBarrierBuilder<TParent>& subresource(
UInt32 level,
UInt32 levels,
UInt32 layer = 0,
UInt32 layers = 1,
UInt32 plane = 0);
Return Value¶
A builder that sets up a resource barrier for a specific image.
Parameters¶
| Name | Description |
|---|---|
| level | The base level of the sub-resource. |
| levels | The number of levels to block and transition. |
| layer | The base layer of the sub-resource. |
| layers | The number of layers to block and transition. |
| plane | The plane index of the sub-resource to block and transition. |