LiteFX::Rendering::Backends::VulkanBarrierBuilder::blockAccessTo¶
blockAccessTo overloads
Synopses¶
Declared in <litefx/rendering_builders.hpp>
Specifies the resource accesses that are blocked in a global barrier until the barrier has executed.
template<typename TSelf>
[[nodiscard]] constexpr GlobalBarrierBuilder<TSelf> blockAccessTo(this
TSelf&& self,
ResourceAccess access);
Specifies the resource accesses that are blocked for buffer until the barrier has executed.
template<typename TSelf>
[[nodiscard]] constexpr BufferBarrierBuilder<TSelf> blockAccessTo(this
TSelf&& self,
IBuffer& buffer,
ResourceAccess access);
Specifies the resource accesses that are blocked for image until the barrier has executed.
template<typename TSelf>
[[nodiscard]] constexpr ImageBarrierBuilder<TSelf> blockAccessTo(this
TSelf&& self,
IImage& image,
ResourceAccess access);
Specifies the resource accesses that are blocked for buffer until the barrier has executed.
template<typename TSelf>
[[nodiscard]] constexpr BufferBarrierBuilder<TSelf> blockAccessTo(this
TSelf&& self,
IBuffer& buffer,
UInt32 subresource,
ResourceAccess access);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| access | The resource accesses that are blocked until the barrier has executed. |
| buffer | The buffer to wait for. |
| image | The buffer to wait for. |
| subresource | The sub-resource to block. |