GRContext.Flush Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Flush(Boolean, Boolean) |
Flushes all pending drawing operations to the underlying 3D API, optionally submitting work to the GPU. |
| Flush(SKSurface) |
Flushes any pending GPU drawing work associated with the specified surface. |
| Flush() |
Call to ensure all drawing to the context has been issued to the underlying 3D API. |
| Flush(SKImage) |
Flushes any pending GPU drawing work associated with the specified image. |
Flush(Boolean, Boolean)
Flushes all pending drawing operations to the underlying 3D API, optionally submitting work to the GPU.
public void Flush(bool submit, bool synchronous = false);
Parameters
- submit
- Boolean
true to submit the work to the GPU after flushing; otherwise, false.
- synchronous
- Boolean
true to wait for the GPU to complete the work; otherwise, false.
Applies to
Flush(SKSurface)
Flushes any pending GPU drawing work associated with the specified surface.
public void Flush(SkiaSharp.SKSurface surface);
Parameters
- surface
- SKSurface
The surface whose associated GPU work should be flushed.
Applies to
Flush()
Call to ensure all drawing to the context has been issued to the underlying 3D API.
public void Flush();
Applies to
Flush(SKImage)
Flushes any pending GPU drawing work associated with the specified image.
public void Flush(SkiaSharp.SKImage image);
Parameters
- image
- SKImage
The image whose associated GPU work should be flushed.