GRContext Class

Definition

Represents an underlying backend 3D API context.

public class GRContext : SkiaSharp.SKObject
Inheritance

Properties

Backend

Gets the backend that this context is wrapping.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)

Methods

AbandonContext(Boolean)

Abandons all GPU resources and assumes the underlying backend 3D API context is not longer usable. After returning it will assume that the underlying context may no longer be valid.

Create(GRBackend)

Creates a GRContext for a backend context using the default interface for the specified backend.

Create(GRBackend, GRGlInterface)

Creates a GRContext for a backend context.

Create(GRBackend, GRGlInterface, GRContextOptions)

Creates a GRContext for a backend context.

Create(GRBackend, IntPtr)

Creates a GRContext for a backend context.

Create(GRBackend, IntPtr, GRContextOptions)

Creates a GRContext for a backend context.

CreateGl()

Creates a GRContext for an OpenGL context.

CreateGl(GRGlInterface)

Creates a GRContext for an OpenGL context.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the GRContext and optionally releases the managed resources.

Flush()

Call to ensure all drawing to the context has been issued to the underlying 3D API.

Flush(GRContextFlushBits)

Call to ensure all drawing to the context has been issued to the underlying 3D API.

GetMaxSurfaceSampleCount(SKColorType)

Get the maximum supported sample count for the specified color type.

GetRecommendedSampleCount(GRPixelConfig, Single)

Returns the recommended sample count for a render target when using this context.

GetResourceCacheLimits(Int32, Int64)

Returns the current GPU resource cache limits.

GetResourceCacheUsage(Int32, Int64)

Returns the current GPU resource cache usage.

ResetContext(GRBackendState)

Informs the context that the state was modified and should resend.

ResetContext(GRGlBackendState)

Informs the context that the state was modified and should resend.

ResetContext(UInt32)

Informs the context that the state was modified and should resend.

SetResourceCacheLimits(Int32, Int64)

Specify the GPU resource cache limits.

Applies to