D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW structure (d3d10umddi.h)

The D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW structure describes a two-dimensional (2-D) texture that is used to create a shader resource view in a call to CreateShaderResourceView.

Syntax

typedef struct D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW {
  UINT MostDetailedMip;
  UINT FirstArraySlice;
  UINT MipLevels;
  UINT ArraySize;
  UINT PlaneSlice;
  UINT PlaneIndex;
} D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW;

Members

MostDetailedMip

[in] The identifier of the most detailed MIP-map.

FirstArraySlice

[in] The identifier of the first array slice.

MipLevels

[in] The number of MIP-map levels for the texture.

ArraySize

[in] The number of array slices for the texture.

PlaneSlice

[in] The identifier of the plane slice.

PlaneIndex

[in] The index (plane slice number) of the plane to use in the texture.

Remarks

If MipLevels is set to -1, the MIP-maps in the texture start from the MIP-map that is set in the MostDetailedMip member.

If ArraySize is set to -1, the array slices in the texture start from the array slice that is set in FirstArraySlice member.

Requirements

Requirement Value
Minimum supported client Windows 10 (WDDM 2.0)
Header d3d10umddi.h

See also

CalcPrivateShaderResourceViewSize

CreateShaderResourceView

D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW