Skip to content

LiteFX::Rendering::Backends::VulkanBarrierBuilder::blockAccessTo

Specifies the resource accesses that are blocked for buffer until the barrier has executed.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
[[nodiscard]] constexpr BufferBarrierBuilder<TSelf> blockAccessTo(this 
    TSelf&& self,
    IBuffer& buffer,
    UInt32 subresource,
    ResourceAccess access);

Return Value

A builder that sets up a resource barrier for a specific buffer.

Note

The return value should not be discarded.

Parameters

NameDescription
bufferThe buffer to wait for.
subresourceThe sub-resource to block.
accessThe resource accesses that are blocked until the barrier has executed.