Edit

SKGraphiteBackendTexture Class

Definition

Wraps an existing platform GPU texture so that it can be used as a Graphite render target or sampling source.

public class SKGraphiteBackendTexture : SkiaSharp.SKObject
Inheritance
SKGraphiteBackendTexture

Remarks

Create an instance from a platform texture handle using one of the backend-specific factory methods (CreateVulkan(Int32, Int32, SKGraphiteVkTextureInfo, Int32, UInt32, IntPtr), CreateMetal(Int32, Int32, IntPtr), or CreateDawn(IntPtr)). The caller retains ownership of the underlying platform texture; disposing this wrapper does not destroy it.

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 belongs to.

Dimensions

Gets the dimensions of the texture, in pixels.

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 wrapper references a valid texture.

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)

Methods

Name Description
CreateDawn(IntPtr)

Wraps an existing Dawn (WebGPU) texture as a Graphite backend texture.

CreateMetal(Int32, Int32, IntPtr)

Wraps an existing Metal texture as a Graphite backend texture.

CreateVulkan(Int32, Int32, SKGraphiteVkTextureInfo, Int32, UInt32, IntPtr)

Wraps an existing Vulkan image as a Graphite backend texture.

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 backend texture wrapper.

DisposeUnownedManaged()

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

(Inherited from SKObject)

Applies to