LiteFX::Rendering::Barrier::transition¶
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.
Synopsis¶
Declared in <litefx/rendering.hpp>
constexpr virtual void transition(
buffer_type const& buffer,
UInt32 element,
ResourceAccess accessBefore,
ResourceAccess accessAfter) = 0;
Description¶
Due to driver restrictions, this is overload is currently redundant, but might be available in the future. Currently, calling this method ignores the element parameter and transitions the whole buffer.
Parameters¶
| Name | Description |
|---|---|
| buffer | The buffer resource to transition. |
| element | The element of the resource to transition. |
| accessBefore | The access types previous commands have to finish. |
| accessAfter | The access types that subsequent commands continue with. |