Click or drag to resize
DigitalRuneD3DImagePresentationTargetIsFrameReady Property
Gets a value indicating whether the Direct3D 11 device has finished rendering the current frame.

Namespace: DigitalRune.Graphics.Interop
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public bool IsFrameReady { get; }

Property Value

Type: Boolean
if Direct3D 11 has finished rendering; otherwise, if the Direct3D 11 device is busy.
Remarks

A return value of guarantees that the current frame rendered to the back buffer is complete and ready to be copied to the front buffer in WPF.

A return value of means that the Direct3D 11 device is still busy. However, the back buffer might already be usable in WPF! (Since Direct3D 11 and Direct3D 9 run asynchronously by default, there is a chance that the result is already finished when the Direct3D 9 device tries to access the shared back buffer!)

When the application is continuously rendering new frames, for example, at 60 frames per second, it is not useful to query IsFrameReady. The flag is reset every time a new frame is started. Therefore, the value of the property will be in most cases.

When IsSynchronized is , then Direct3D 9 and Direct3D 11 run in sync and IsFrameReady will therefore always return .

See Also