D3D12DDI_RESOURCE_RANGED_BARRIER_0022 structure (d3d12umddi.h)

Describes a resource ranged barrier.

Syntax

typedef struct D3D12DDI_RESOURCE_RANGED_BARRIER_0022 {
  D3D12DDI_HRESOURCE hResource;
  UINT               Subresource;
  D3D12DDI_RANGE     Range;
} D3D12DDI_RESOURCE_RANGED_BARRIER_0022;

Members

hResource

The handle of a resource. A null value means that the entire GPU cache must be flushed or invalidated. A non-null value means that the flush or invalidate action affects a smaller subset of the cache that can contain data for that resource.

Subresource

A subresource. If the Subresource value is -1 or _ALL_SUBRESOURCES, then a flush or invalidate action need only affect the part of the cache where the entire hResource may reside. If Subresource is not _ALL_SUBRESOURCES, a valid subresource index is specified and the Range may further constrain the impact of the operation.

Range

A range as a D3D12DDI_RANGE structure. If the resource is a texture with an adapter-dependent layout, the range must be (0, UINT64_MAX), because only the driver knows where a particular subresource resides. When the resource is a buffer or texture with well-specified layout, the range fits within the subresource extent. Empty ranges are never passed.

Requirements

Requirement Value
Header d3d12umddi.h (include D3d12umddi.h)

See also

D3D12DDI_RANGE