Barrier

A structure encapsulating information needed for resource barrier execution.

File location: framework/cauldron/framework/inc/render/gpuresource.h

Methods

Return type

Description

static Barrier

Transition ( const GPUResource * pRes, ResourceState srcState, ResourceState dstState, uint32_t subResource = 0xffffffff )

static Barrier

UAV (const GPUResource * pRes)

Detailed description

A structure encapsulating information needed for resource barrier execution.

Data fields

Type

Description

BarrierType

Type
The “BarrierType“.

const GPUResource *

pResource
The “GPUResource“ to apply the barrier to.

ResourceState

SourceState
The source “ResourceState“.

ResourceState

DestState
The destination “ResourceState“.

uint32_t

SubResource
The sub-resource to transition (or -1 for whole resource).