ID3D11ShaderResourceView interface

A shader-resource-view interface specifies the subresources a shader can access during rendering. Examples of shader resources include a constant buffer, a texture buffer, and a texture.

Methods

The ID3D11ShaderResourceView interface has these methods.

Method Description
ID3D11ShaderResourceView::GetDesc Get the shader resource view's description.

Remarks

To create a shader-resource view, call ID3D11Device::CreateShaderResourceView.

A shader-resource view is required when binding a resource to a shader stage; the binding occurs by calling ID3D11DeviceContext::GSSetShaderResources, ID3D11DeviceContext::VSSetShaderResources or ID3D11DeviceContext::PSSetShaderResources.

Requirements

   
Windows version Windows 7 [desktop apps | UWP apps] Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h

See Also

ID3D11View

Resource Interfaces