LiteFX::Rendering::Backends::DirectX12Barrier::transition¶
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.
Synopsis¶
Declared in <litefx/rendering.hpp>
[[dllimport, dllexport]] constexpr virtual void transition(
image_type const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout) = 0;
Parameters¶
| Name | Description |
|---|---|
| image | The image resource to transition. |
| accessBefore | The access types previous commands have to finish. |
| accessAfter | The access types that subsequent commands continue with. |
| layout | The image layout to transition into. |