D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW structure (d3d10umddi.h)

The D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW structure describes a shader resource view.

Syntax

typedef struct D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW {
  D3D10DDI_HRESOURCE    hDrvResource;
  DXGI_FORMAT           Format;
  D3D10DDIRESOURCE_TYPE ResourceDimension;
  union {
    D3D10DDIARG_BUFFER_SHADERRESOURCEVIEW     Buffer;
    D3D10DDIARG_TEX1D_SHADERRESOURCEVIEW      Tex1D;
    D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW Tex2D;
    D3D10DDIARG_TEX3D_SHADERRESOURCEVIEW      Tex3D;
    D3D10_1DDIARG_TEXCUBE_SHADERRESOURCEVIEW  TexCube;
    D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW   BufferEx;
  };
} D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW;

Members

hDrvResource

[in] A handle to the shader resource.

Format

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

ResourceDimension

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

Buffer

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

Tex1D

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

Tex2D

[in] If ResourceDimension is set to D3D10DDIRESOURCE_TEXTURE2D, Buffer holds a D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW structure for a two-dimensional texture.

Tex3D

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

TexCube

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

BufferEx

[in] 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 (WDDM 2.0)
Header d3d10umddi.h

See also

CalcPrivateShaderResourceViewSize(WDDM 2.0)

CreateShaderResourceView(WDDM 2.0)

D3D10DDIARG_BUFFER_SHADERRESOURCEVIEW

D3D10DDIARG_TEX1D_SHADERRESOURCEVIEW

D3DWDDM2_0DDIARG_TEX2D_SHADERRESOURCEVIEW

D3D10DDIARG_TEX3D_SHADERRESOURCEVIEW

D3D10DDIARG_TEXCUBE_SHADERRESOURCEVIEW

D3D10DDIRESOURCE_TYPE

D3D11DDIARG_BUFFEREX_SHADERRESOURCEVIEW