Skip to main content
Describes the subresources from an array of 2D textures to use in a shader-resource view.

Syntax

Members

MostDetailedMip
Type: UINT
Index of the most detailed mipmap level to use; this number is between 0 and MipLevels -1 (where MipLevels is from the original Texture2D for which ID3D12Device::CreateShaderResourceView creates a view). MipLevels
Type: UINT
The maximum number of mipmap levels for the view of the texture. See the remarks in D3D12_TEX1D_SRV. Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed. FirstArraySlice
Type: UINT
The index of the first texture to use in an array of textures. ArraySize
Type: UINT
Number of textures in the array. PlaneSlice
Type: UINT
The index (plane slice number) of the plane to use in an array of textures. ResourceMinLODClamp
Type: FLOAT
Specifies the minimum mipmap level that you can access. Specifying 0.0f means that you can access all of the mipmap levels. Specifying 3.0f means that you can access mipmap levels from 3.0f to MipCount - 1. We recommend that you don’t set MostDetailedMip and ResourceMinLODClamp at the same time. Instead, set one of those two members to 0 (to get default behavior). That’s because MipLevels is interpreted differently in conjunction with different fields:
  • For MostDetailedMip, mips are in the range [MostDetailedMip, MostDetailedMip + MipLevels - 1].
  • For ResourceMinLODClamp, mips are in the range [ResourceMinLODClamp, MipLevels - 1].

Remarks

This structure is one member of a shader-resource-view description, D3D12_SHADER_RESOURCE_VIEW_DESC.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

Core Structures
Last modified on August 20, 2026