Skip to content

LiteFX::Rendering::Backends::VulkanCommandBuffer::barrier

Executes the transitions that have been added to barrier.

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] virtual void barrier(barrier_type const& barrier) const noexcept = 0;

Description

Calling this method will also update the resource states of each resource within the barrier. However, the actual state of the resource does not change until the barrier is executed on the command queue. Keep this in mind when inserting multiple barriers from different threads or in different command buffers, which may not be executed in order. You might have to manually synchronize barrier execution.

Parameters

NameDescription
barrierThe barrier containing the transitions to perform.