Skip to main content

Class SparseRenderContextHandle

Namespace: VelloSharp
Assembly: VelloSharp.Ffi.Sparse.dll

public sealed class SparseRenderContextHandle : SafeHandle, IDisposable

Inheritance

objectCriticalFinalizerObjectSafeHandleSparseRenderContextHandle

Implements

IDisposable

Inherited Members

SafeHandle.Close(), SafeHandle.DangerousAddRef(ref bool), SafeHandle.DangerousGetHandle(), SafeHandle.DangerousRelease(), SafeHandle.Dispose(), SafeHandle.SetHandleAsInvalid(), SafeHandle.IsClosed, SafeHandle.IsInvalid, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

IsInvalid

When overridden in a derived class, gets a value indicating whether the handle value is invalid.

public override bool IsInvalid { get; }

Property Value

bool

Methods

Create(ushort, ushort, ushort, bool, SparseSimdLevel)

public static SparseRenderContextHandle Create(ushort width, ushort height, ushort threadCount = 0, bool enableMultithreading = true, SparseSimdLevel simdLevel = SparseSimdLevel.Auto)

Parameters

width ushort

height ushort

threadCount ushort

enableMultithreading bool

simdLevel SparseSimdLevel

Returns

SparseRenderContextHandle

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

protected override bool ReleaseHandle()

Returns

bool

true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed Managed Debugging Assistant.