struct
render::GpuRenderTargetBarrier
Describes a barrier for a RenderTarget.
This is functionally equivalent to specifying GpuTextureBarrier on the color or depth/stencil textures of the render target. However, it is necessary for issuing barriers on swap chain images, which cannot be accessed as standalone textures.
Public
Constructors
GpuRenderTargetBarrier
GpuRenderTargetBarrier
GpuRenderTargetBarrier
GpuRenderTargetBarrier
Fields
Object
SurfaceMask
Specifies which surface of the render target the barrier applies to.
Must be a single bit.
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.