ID3D10View interface
A view interface specifies the parts of a resource the pipeline can access during rendering (see view).
Members
The ID3D10View interface inherits from ID3D10DeviceChild. ID3D10View also has these types of members:
Methods
The ID3D10View interface has these methods.
| Method | Description |
|---|---|
| GetResource |
Get the resource that is accessed through this view. |
Remarks
A view interface is the base interface for all views. There are three types of views; a depth-stencil view, a render-target view, and a shader-resource view.
- To create a render-target view, call ID3D10Device::CreateRenderTargetView.
- To create a depth-stencil view, call ID3D10Device::CreateDepthStencilView.
- To create a shader-resource view, call ID3D10Device::CreateShaderResourceView.
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 ID3D10Device::OMSetRenderTargets.
- To bind a shader-resource view, call ID3D10Device::VSSetShaderResources.
A view can also be used to access a typeless resource.
Requirements
|
Header |
|
|---|---|
|
Library |
|
See also