LiteFX::Rendering::IBarrier::transition¶
transition overloads
Synopses¶
Declared in <litefx/rendering_api.hpp>
Inserts a buffer barrier that blocks access to buffer of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.
[[dllimport, dllexport]] constexpr void transition(
IBuffer const& buffer,
ResourceAccess accessBefore,
ResourceAccess accessAfter);
Inserts a buffer barrier that blocks access to a buffers element of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.
[[dllimport, dllexport]] constexpr void transition(
IBuffer const& buffer,
UInt32 element,
ResourceAccess accessBefore,
ResourceAccess accessAfter);
Inserts an image barrier that blocks access to all sub-resources of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions all sub-resources into layout.
[[dllimport, dllexport]] constexpr void transition(
IImage const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout);
Inserts an image barrier that blocks access to all sub-resources of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions all sub-resources into layout.
[[dllimport, dllexport]] constexpr void transition(
IImage const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout fromLayout,
ImageLayout toLayout);
Inserts an image barrier that blocks access to a sub-resource range of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions the sub-resource into layout.
[[dllimport, dllexport]] constexpr void transition(
IImage const& image,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout);
Inserts an image barrier that blocks access to a sub-resource range of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions the sub-resource into layout.
[[dllimport, dllexport]] constexpr void transition(
IImage const& image,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout fromLayout,
ImageLayout toLayout);
Parameters¶
| Name | Description |
|---|---|
| buffer | The buffer resource to transition. |
| accessBefore | The access types previous commands have to finish. |
| accessAfter | The access types that subsequent commands continue with. |
| element | The element of the resource to transition. |
| image | The image resource to transition. |
| layout | The image layout to transition into. |
| fromLayout | The image layout to transition from. |
| toLayout | The image layout to transition into. |
| level | The base mip-map level of the sub-resource range. |
| levels | The number of mip-map levels of the sub-resource range. |
| layer | The base array layer of the sub-resource range. |
| layers | The number of array layer of the sub-resource range. |
| plane | The plane of the sub-resource. |