D3D12_BARRIER_SUBRESOURCE_RANGE structure (d3d12.h)
Allows you to transition logically-adjacent ranges of subresources.
Syntax
typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE {
UINT IndexOrFirstMipLevel;
UINT NumMipLevels;
UINT FirstArraySlice;
UINT NumArraySlices;
UINT FirstPlane;
UINT NumPlanes;
} D3D12_BARRIER_SUBRESOURCE_RANGE;
Members
IndexOrFirstMipLevel
The index of the first mip level in the range; or a subresource index, if NumMipLevels is zero. If a subresource index, then you can use the value 0xffffffff
to specify all subresources.
NumMipLevels
Number of mip levels in the range, or zero to indicate that IndexOrFirstMipLevel is a subresource index.
FirstArraySlice
Index of first array slice in the range. Ignored if NumMipLevels is zero.
NumArraySlices
Number of array slices in the range. Ignored if NumMipLevels is zero.
FirstPlane
First plane slice in the range. Ignored if NumMipLevels is zero.
NumPlanes
Number of plane slices in the range. Ignored if NumMipLevels is zero.
Requirements
Requirement | Value |
---|---|
Header | d3d12.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for