Skip to content

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

NameThrown on
RuntimeExceptionThrown, 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

NameDescription
commandBufferThe command buffer to add the barriers to.