CD3D11_SHADER_RESOURCE_VIEW_DESC1 structure (d3d11_3.h)

Describes a shader-resource view.

Syntax

struct CD3D11_SHADER_RESOURCE_VIEW_DESC1 : D3D11_SHADER_RESOURCE_VIEW_DESC1 {
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1();
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1(
    const D3D11_SHADER_RESOURCE_VIEW_DESC1 & o
  );
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1(
    D3D11_SRV_DIMENSION viewDimension,
    DXGI_FORMAT         format,
    UINT                mostDetailedMip,
    UINT                mipLevels,
    UINT                firstArraySlice,
    UINT                arraySize,
    UINT                flags,
    UINT                planeSlice
  );
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1(
    ID3D11Buffer *unnamedParam1,
    DXGI_FORMAT  format,
    UINT         firstElement,
    UINT         numElements,
    UINT         flags
  );
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1(
    ID3D11Texture1D     *pTex1D,
    D3D11_SRV_DIMENSION viewDimension,
    DXGI_FORMAT         format,
    UINT                mostDetailedMip,
    UINT                mipLevels,
    UINT                firstArraySlice,
    UINT                arraySize
  );
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1(
    ID3D11Texture2D     *pTex2D,
    D3D11_SRV_DIMENSION viewDimension,
    DXGI_FORMAT         format,
    UINT                mostDetailedMip,
    UINT                mipLevels,
    UINT                firstArraySlice,
    UINT                arraySize,
    UINT                planeSlice
  );
  void CD3D11_SHADER_RESOURCE_VIEW_DESC1(
    ID3D11Texture3D *pTex3D,
    DXGI_FORMAT     format,
    UINT            mostDetailedMip,
    UINT            mipLevels
  );
  void ~CD3D11_SHADER_RESOURCE_VIEW_DESC1();
};

Inheritance

The CD3D11_SHADER_RESOURCE_VIEW_DESC1 structure implements D3D11_SHADER_RESOURCE_VIEW_DESC1.

Members

void CD3D11_SHADER_RESOURCE_VIEW_DESC1()

TBD

void CD3D11_SHADER_RESOURCE_VIEW_DESC1( const D3D11_SHADER_RESOURCE_VIEW_DESC1 & o)

void CD3D11_SHADER_RESOURCE_VIEW_DESC1( D3D11_SRV_DIMENSION viewDimension, DXGI_FORMAT format, UINT mostDetailedMip, UINT mipLevels, UINT firstArraySlice, UINT arraySize, UINT flags, UINT planeSlice)

void CD3D11_SHADER_RESOURCE_VIEW_DESC1( ID3D11Buffer *unnamedParam1, DXGI_FORMAT format, UINT firstElement, UINT numElements, UINT flags)

void CD3D11_SHADER_RESOURCE_VIEW_DESC1( ID3D11Texture1D *pTex1D, D3D11_SRV_DIMENSION viewDimension, DXGI_FORMAT format, UINT mostDetailedMip, UINT mipLevels, UINT firstArraySlice, UINT arraySize)

void CD3D11_SHADER_RESOURCE_VIEW_DESC1( ID3D11Texture2D *pTex2D, D3D11_SRV_DIMENSION viewDimension, DXGI_FORMAT format, UINT mostDetailedMip, UINT mipLevels, UINT firstArraySlice, UINT arraySize, UINT planeSlice)

void CD3D11_SHADER_RESOURCE_VIEW_DESC1( ID3D11Texture3D *pTex3D, DXGI_FORMAT format, UINT mostDetailedMip, UINT mipLevels)

void ~CD3D11_SHADER_RESOURCE_VIEW_DESC1()

TBD

Remarks

A view is a format-specific way to look at the data in a resource. The view determines what data to look at, and how it is cast when read.

When viewing a resource, the resource-view description must specify a typed format, that is compatible with the resource format. So that means that you cannot create a resource-view description using any format with _TYPELESS in the name. You can however view a typeless resource by specifying a typed format for the view. For example, a DXGI_FORMAT_R32G32B32_TYPELESS resource can be viewed with one of these typed formats: DXGI_FORMAT_R32G32B32_FLOAT, DXGI_FORMAT_R32G32B32_UINT, and DXGI_FORMAT_R32G32B32_SINT, since these typed formats are compatible with the typeless resource.

Create a shader-resource-view description by calling ID3D11Device3::CreateShaderResourceView1. To view a shader-resource-view description, call ID3D11ShaderResourceView1::GetDesc1.

Requirements

Requirement Value
Header d3d11_3.h

See also

Resource Structures