GRContext Class

Definition

Represents an underlying backend 3D API context.

public class GRContext : SkiaSharp.SKObject
public class GRContext : SkiaSharp.GRRecordingContext
Inheritance
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)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsAbandoned
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
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, GRGlInterface, GRContextOptions)

Creates a GRContext for a backend context.

Create(GRBackend, GRGlInterface)
Obsolete.

Creates a GRContext for a backend context.

Create(GRBackend, IntPtr, GRContextOptions)

Creates a GRContext for a backend context.

Create(GRBackend, IntPtr)
Obsolete.
Obsolete.

Creates a GRContext for a backend context.

Create(GRBackend)
Obsolete.

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

CreateGl()

Creates a GRContext for an OpenGL context.

CreateGl(GRContextOptions)
CreateGl(GRGlInterface, GRContextOptions)
CreateGl(GRGlInterface)

Creates a GRContext for an OpenGL context.

CreateVulkan(GRVkBackendContext, GRContextOptions)
CreateVulkan(GRVkBackendContext)
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.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
DumpMemoryStatistics(SKTraceMemoryDump)
Flush()

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

Flush(Boolean, Boolean)
GetMaxSurfaceSampleCount(SKColorType)

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

GetRecommendedSampleCount(GRPixelConfig, Single)
Obsolete.

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

GetResourceCacheLimit()
GetResourceCacheLimits(Int32, Int64)
Obsolete.

Returns the current GPU resource cache limits.

GetResourceCacheUsage(Int32, Int64)

Returns the current GPU resource cache usage.

PurgeResources()
PurgeUnlockedResources(Boolean)
PurgeUnlockedResources(Int64, Boolean)
PurgeUnusedResources(Int64)
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.

SetResourceCacheLimit(Int64)
SetResourceCacheLimits(Int32, Int64)
Obsolete.

Specify the GPU resource cache limits.

Submit(Boolean)

Applies to