Bewerken

Delen via


D3D10DDIARG_TEX2D_SHADERRESOURCEVIEW structure (d3d10umddi.h)

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

Syntax

typedef struct D3D10DDIARG_TEX2D_SHADERRESOURCEVIEW {
  [in] UINT MostDetailedMip;
  [in] UINT FirstArraySlice;
  [in] UINT MipLevels;
  [in] UINT ArraySize;
} D3D10DDIARG_TEX2D_SHADERRESOURCEVIEW;

Members

[in] MostDetailedMip

The identifier of the most detailed MIP-map.

[in] FirstArraySlice

The identifier of the first array slice.

[in] MipLevels

The number of MIP-map levels for the texture.

[in] ArraySize

The number of array slices for the texture.

Remarks

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

If the ArraySize member 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 Available in Windows Vista and later versions of the Windows operating systems.
Header d3d10umddi.h (include D3d10umddi.h)

See also

CalcPrivateShaderResourceViewSize

CreateShaderResourceView

D3D10DDIARG_CREATESHADERRESOURCEVIEW