D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW structure

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 {
  UINT MostDetailedMip;
  UINT MipLevels;
  UINT First2DArrayFace;
  UINT NumCubes;
} D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW;

Members

MostDetailedMip

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

MipLevels

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

First2DArrayFace

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

NumCubes

[in] 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

Version

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)
D3D10_1DDIARG_CREATESHADERRESOURCEVIEW
D3D10DDIARG_CREATERESOURCE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft