ID3D11View Interface
A view interface specifies the parts of a resource the pipeline can access during rendering.
Mitglieder
ID3D11ViewSchnittstelle erbt von ID3D11DeviceChild. ID3D11View umfasst auch die folgenden Typen von Mitgliedern:
- Methoden
Methoden
ID3D11ViewSchnittstelle umfasst die folgenden Methoden.
Methode | Beschreibung |
---|---|
GetResource | Get the resource that is accessed through this view. |
Hinweise
A view interface is the base interface for all views. There are four types of views; a depth-stencil view, a render-target view, a shader-resource view, and an unordered-access view.
- To create a render-target view, call ID3D11Device::CreateRenderTargetView.
- To create a depth-stencil view, call ID3D11Device::CreateDepthStencilView.
- To create a shader-resource view, call ID3D11Device::CreateShaderResourceView.
- To create an unordered-access view, call ID3D11Device::CreateUnorderedAccessView.
All resources must be bound to the pipeline before they can be accessed.
- To bind a render-target view or a depth-stencil view, call ID3D11DeviceContext::OMSetRenderTargets.
- To bind a shader resource, call ID3D11DeviceContext::VSSetShaderResources.