D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW structure (d3d10umddi.h)

The D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW structure describes cube textures that are used to create a shader resource view in a call to the CreateShaderResourceView(D3D10_1) function.

Syntax

typedef struct D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW {
  [in] UINT MostDetailedMip;
  [in] UINT MipLevels;
  [in] UINT First2DArrayFace;
  [in] UINT NumCubes;
} D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW;

Members

[in] MostDetailedMip

The identifier of the most detailed MIP-map.

[in] MipLevels

The number of MIP-map levels for the texture.

[in] First2DArrayFace

The identifier of the first 2-D texture that comprises one or more cube textures.

[in] NumCubes

The number of cube textures for a shader resource view.

Remarks

The value in the First2DArrayFace member added with 6 multiplied by the number in the NumCubes member must be less than or equal to the value in the ArraySize member of the D3D10DDIARG_CREATERESOURCE structure for the shader resource whose view is created in a call to the driver's CreateShaderResourceView(D3D10_1) function. That is, the following calculation applies:

::First2DArrayFace + 6 * ::NumCubes <= Resource ::ArraySize

Requirements

Requirement Value
Minimum supported client D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW is supported on Windows Vista with Service Pack 1 (SP1) and later versions and Windows Server 2008 and later versions.
Header d3d10umddi.h (include D3d10umddi.h)

See also

CalcPrivateShaderResourceViewSize(D3D10_1)

CreateShaderResourceView(D3D10_1)

D3D10DDIARG_CREATERESOURCE

D3D10_1DDIARG_CREATESHADERRESOURCEVIEW