LiteFX::Rendering::Backends::DirectX12Barrier::transition¶
transition overloads
Synopses¶
Declared in <litefx/backends/dx12.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]] virtual void transition(
IDirectX12Buffer const& buffer,
ResourceAccess accessBefore,
ResourceAccess accessAfter) override;
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 virtual void transition(
buffer_type const& buffer,
ResourceAccess accessBefore,
ResourceAccess accessAfter) = 0;
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]] virtual void transition(
IDirectX12Buffer const& buffer,
UInt32 element,
ResourceAccess accessBefore,
ResourceAccess accessAfter) override;
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]] virtual void transition(
IDirectX12Image const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout) override;
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 virtual void transition(
buffer_type const& buffer,
UInt32 element,
ResourceAccess accessBefore,
ResourceAccess accessAfter) = 0;
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 virtual void transition(
image_type const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout) = 0;
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]] virtual void transition(
IDirectX12Image const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout fromLayout,
ImageLayout toLayout) override;
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 virtual void transition(
image_type const& image,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout fromLayout,
ImageLayout toLayout) = 0;
transition overloads
[[dllimport, dllexport]] virtual void transition(
IDirectX12Image const& image,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout) override;
transition overloads
[[dllimport, dllexport]] constexpr virtual void transition(
image_type const& image,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout layout) = 0;
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]] virtual void transition(
IDirectX12Image const& image,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout fromLayout,
ImageLayout toLayout) override;
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 virtual void transition(
image_type const& image,
UInt32 level,
UInt32 levels,
UInt32 layer,
UInt32 layers,
UInt32 plane,
ResourceAccess accessBefore,
ResourceAccess accessAfter,
ImageLayout fromLayout,
ImageLayout toLayout) = 0;
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. |