D3D11DDIARG_CREATESHADERRESOURCEVIEW structure (d3d10umddi.h)

The D3D11DDIARG_CREATESHADERRESOURCEVIEW structure describes the shader resource view to create.

Syntax

typedef struct D3D11DDIARG_CREATESHADERRESOURCEVIEW {
  [in] D3D10DDI_HRESOURCE    hDrvResource;
       DXGI_FORMAT           Format;
  [in] D3D10DDIRESOURCE_TYPE ResourceDimension;
  union {
    [in] D3D10DDIARG_BUFFER_SHADERRESOURCEVIEW    Buffer;
    [in] D3D10DDIARG_TEX1D_SHADERRESOURCEVIEW     Tex1D;
    [in] D3D10DDIARG_TEX2D_SHADERRESOURCEVIEW     Tex2D;
    [in] D3D10DDIARG_TEX3D_SHADERRESOURCEVIEW     Tex3D;
    [in] D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW TexCube;
    [in] D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW  BufferEx;
  };
} D3D11DDIARG_CREATESHADERRESOURCEVIEW;

Members

[in] hDrvResource

A handle to the shader resource.

Format

[in] A DXGI_FORMAT-typed value that indicates the pixel format of the view.

[in] ResourceDimension

A D3D10DDIRESOURCE_TYPE-typed value that indicates the resource type and dimensionality.

[in] Buffer

If ResourceDimension is set to D3D10DDIRESOURCE_BUFFER, Buffer holds a D3D10DDIARG_BUFFER_SHADERRESOURCEVIEW structure for a buffer.

[in] Tex1D

If ResourceDimension is set to D3D10DDIRESOURCE_TEXTURE1D, Buffer holds a D3D10DDIARG_TEX1D_SHADERRESOURCEVIEW structure for a one-dimensional texture.

[in] Tex2D

If ResourceDimension is set to D3D10DDIRESOURCE_TEXTURE2D, Buffer holds a D3D10DDIARG_TEX2D_SHADERRESOURCEVIEW structure for a two-dimensional texture.

[in] Tex3D

If ResourceDimension is set to D3D10DDIRESOURCE_TEXTURE3D, Buffer holds a D3D10DDIARG_TEX3D_SHADERRESOURCEVIEW structure for a three-dimensional texture.

[in] TexCube

If ResourceDimension is set to D3D10DDIRESOURCE_TEXTURECUBE, Buffer holds a D3D10DDIARG_TEXCUBE_SHADERRESOURCEVIEW structure for a cube texture.

[in] BufferEx

If ResourceDimension is set to D3D11DDIRESOURCE_BUFFEREX, a Buffer holds a D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW structure for a buffer.

Requirements

Requirement Value
Minimum supported client Windows 7
Header d3d10umddi.h (include D3d10umddi.h)

See also

CalcPrivateShaderResourceViewSize(D3D11)

CreateShaderResourceView(D3D11)

D3D10DDIARG_BUFFER_SHADERRESOURCEVIEW

D3D10DDIARG_TEX1D_SHADERRESOURCEVIEW

D3D10DDIARG_TEX2D_SHADERRESOURCEVIEW

D3D10DDIARG_TEX3D_SHADERRESOURCEVIEW

D3D10DDIARG_TEXCUBE_SHADERRESOURCEVIEW

D3D10DDIRESOURCE_TYPE

D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW