|
RenderingContextSetBackBuffer Method |
Changes the current BackBuffer and its RenderTargetView and DepthStencilView.
With setting bindNewRenderTargetsToDeviceContext to true, it is also possible to call SetRenderTargets method on the DeviceContext.OutputMerger and change the currently bind RenderTargetView and DepthStencilView.
The specified back buffer will be used for the following rendering steps.
If the specified back buffer is different from the
FinalBackBuffer, then the back buffer will be copied or resolved (in case of MSAA back buffer) into FinalBackBuffer at the end of rendering.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax public void SetBackBuffer(
Texture2D backBuffer,
Texture2DDescription backBufferDescription,
RenderTargetView renderTargetView,
DepthStencilView depthStencilView,
int currentSupersamplingCount,
bool bindNewRenderTargetsToDeviceContext
)
Parameters
- backBuffer Texture2D
- Texture2D of the back buffer
- backBufferDescription Texture2DDescription
- Texture2DDescription of the back buffer
- renderTargetView RenderTargetView
- RenderTargetView of the back buffer
- depthStencilView DepthStencilView
- DepthStencilView for the back buffer
- currentSupersamplingCount Int32
- currently used super-sampling count in the specified back buffers
- bindNewRenderTargetsToDeviceContext Boolean
- if false, then only the properties of this RenderingContext are changed; if true, then the newly set renderTargetView and depthStencilView will be bind to the DeviceContext - the following line will be executed: DeviceContext.OutputMerger.SetRenderTargets(depthStencilView, renderTargetView)
See Also