Click or drag to resize
AB4D logo

DXSceneSetupWaitingInBackgroundUntilRendered Method

SetupWaitingInBackgroundUntilRendered method can be used to enable waiting in background until rendering is complete (this can be used for DirectXImage PresentationType where the DXEngine needs to notify WPF when the 3D scene is rendered; this is enabled by default - the DXViewportView.IsWaitingInBackgroundUntilRendered is set to true). In this case the rendering steps in DXEngine are completed before graphic card finishes rendering. When the rendering is complete the renderingCompleteAction is called from another thread. There the user can update the shared texture. When the renderingCompleteAction parameter is null, then waiting in background is disabled.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public void SetupWaitingInBackgroundUntilRendered(
	Action<int> renderingCompleteInBackgroundAction,
	Action<int> waitingCompleteInMainThreadAction = null
)

Parameters

renderingCompleteInBackgroundAction  ActionInt32
Action that is called when rendering is complete (this is called from another thread); when null, then waiting in background is disabled. Parameter is frame number.
waitingCompleteInMainThreadAction  ActionInt32  (Optional)
Optional Action that is called from the main thread (when waiting on the main thread in the InitializeRenderingStep). Parameter is frame number.
See Also