ISurfaceImageSourceManagerNative::FlushAllSurfacesWithDevice method (windows.ui.xaml.media.dxinterop.h)
HRESULT FlushAllSurfacesWithDevice( IUnknown *device );
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The FlushAllSurfacesWithDevice method flushes current GPU work for all SurfaceImageSource objects that were created with device. This GPU work includes Direct2D rendering work and internal GPU work done by the framework associated with rendering. This is useful if an application has created multiple SurfaceImageSource objects and needs to flush the GPU work for all of these surfaces from the background rendering thread. By flushing this work from the background thread the work can be better parallelized, with work being done on the UI thread to improve performance.
You can call the FlushAllSurfacesWithDevice method from a non-UI thread.
|Minimum supported client||Windows 8.1 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 R2 [desktop apps | UWP apps]|