Edit

SKGraphiteTextureInfo Class

Definition

Describes the format and sampling properties of a Graphite backend texture in a backend-agnostic way.

public class SKGraphiteTextureInfo : SkiaSharp.SKObject
Inheritance
SKGraphiteTextureInfo

Remarks

Create an instance from a backend-specific descriptor, such as CreateVulkan(SKGraphiteVkTextureInfo), and pass it to CreateBackendTexture(Int32, Int32, SKGraphiteTextureInfo).

This type wraps a native Skia resource and implements IDisposable. Dispose it when it is no longer needed.

Properties

Name Description
Backend

Gets the graphics backend that this texture info is for.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

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

(Inherited from SKNativeObject)
IsDisposed

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

(Inherited from SKNativeObject)
IsValid

Gets a value indicating whether the texture info describes a valid texture.

Mipmapped

Gets a value indicating whether the texture has mipmaps.

OwnsHandle

Gets or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed.

(Inherited from SKNativeObject)
SampleCount

Gets the number of samples per pixel of the texture.

Methods

Name Description
CreateVulkan(SKGraphiteVkTextureInfo)

Creates a texture info from a Vulkan texture descriptor.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

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

(Inherited from SKObject)
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()

Releases the native resources used by the texture info.

DisposeUnownedManaged()

Implemented by derived SKObject types to dispose managed objects that are not owned by this instance.

(Inherited from SKObject)

Applies to