CD3D11_SHADER_RESOURCE_VIEW_DESC::CD3D11_SHADER_RESOURCE_VIEW_DESC(ID3D11Buffer*,DXGI_FORMAT,UINT,UINT,UINT) function (d3d11.h)

Instantiates a new instance of a CD3D11_SHADER_RESOURCE_VIEW_DESC structure that is initialized with D3D11_BUFFEREX_SRV values.

Syntax

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

Parameters

unnamedParam1

A pointer to a ID3D11Buffer interface for a buffer.

format

A DXGI_FORMAT-typed value that specifies the viewing format.

firstElement

Number of bytes between the beginning of the buffer and the first element to access.

numElements

Total number of elements in the view.

flags

A D3D11_BUFFEREX_SRV_FLAG-typed value that identifies view options for a buffer.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See also

CD3D11_SHADER_RESOURCE_VIEW_DESC