Stereoscopic |
public override void UpdateRenderingContext( RenderingContext renderingContext, bool isNewFrame )
UpdateRenderingContext is called from the BeginVirtualRealityRenderingStep and should update the properties in the RenderingContext according to the current eye.
This method is usually called from the BeginVirtualRealityRenderingStep (when the virtual reality provider is enabled).
Usually this method does the following:
- Creates the back buffers and views that are needed for rendering
(the back buffers are also recreated if the size of CurrentBackBufferDescription is different from the size of previously created back buffers).
- Updates the CurrentEye property.
- Sets the UsedCamera property to a StereoscopicCamera
- Calls SetBackBuffer(Texture2D, Texture2DDescription, RenderTargetView, DepthStencilView, Int32, Boolean) method and sets the new back buffers.
- Calls SetCustomDestinationBuffer(Texture2D, Texture2DDescription, RenderTargetView) on the DefaultResolveBackBufferRenderingStep.