Skip to content

LiteFX::Rendering::Barrier

A barrier used for GPU resource synchronization.

Synopsis

Declared in <litefx/rendering.hpp>

template<
    typename TBuffer,
    typename TImage>
requires std::derived_from<TBuffer, IBuffer> &&
        std::derived_from<TImage, IImage>
class Barrier
    : public IBarrier

Base Classes

NameDescription
IBarrierThe interface for a barrier.

Type Aliases

Member Functions

NameDescription
~Barrier [destructor] [virtual]Destructor
syncAfter [virtual]Returns the stage all subsequent commands need to wait for before continuing execution.
syncBefore [virtual]Returns the stage that all previous commands need to reach before continuing execution.
transition transition overloads
wait [virtual]Inserts a global barrier that waits for previous commands to finish accesses described by accessBefore before subsequent commands can continue with accesses described by accessAfter.

Using Declarations

Name
transition

Protected Member Functions

NameDescription
Barrier [constructor]Constructors
operator= Assignment operators

Derived Classes

NameDescription
DirectX12Barrier Implements a DirectX 12 resource barrier.
VulkanBarrier Implements a Vulkan resource barrier.

See Also

IBarrier