struct
render::GpuSurfaceBarrier
Describes a common set of barrier information used both by Texture and RenderTarget barrier.
Public
Constructors
GpuSurfaceBarrier
GpuSurfaceBarrier
GpuSurfaceBarrier
GpuSurfaceBarrier
Fields
SubresourceRange
Subresources (mips, array levels) of the textures to apply the barrier to.
SourceLayout
Source image layout.
If usage is set to undefined, layout is determined from the current usage of the texture object, otherwise it must be provided.
DestinationLayout
Destination image layout.
If set to Undefined, no layout transition will be performed.
SourceUsage
Determines how was resource used before the barrier.
Barrier will only work for provided accesses. If undefined, source usage, access and layout is automatically deduced based on current buffer use.
SourceAccess
Determines if the resource was read or written before the barrier.
DestinationUsage
Determines how was resource will be used after the barrier.
Barrier will only work for provided accesses. Images will transition to a layout compatible for this usage - incompatible usages are not allowed.
DestinationAccess
Determines if the resource will be read or written after the barrier.