LiteFX::Rendering::Backends::DirectX12Barrier::execute¶
Adds the barrier to a command buffer and updates the resource target states.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] void execute(DirectX12CommandBuffer const& commandBuffer) const;
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if any of the contained barriers is a image barrier that targets a sub-resource range that does not share the same ImageLayout in all sub-resources. |
Parameters¶
| Name | Description |
|---|---|
| commandBuffer | The command buffer to add the barriers to. |