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.
interface ID3D11ShaderResourceView : public ID3D11View
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.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).