Edit

SKGraphiteBackendTexture.CreateMetal(Int32, Int32, IntPtr) Method

Definition

Wraps an existing Metal texture as a Graphite backend texture.

public static SkiaSharp.SKGraphiteBackendTexture CreateMetal(int width, int height, IntPtr mtlTexture);

Parameters

width
Int32

The width of the texture, in pixels.

height
Int32

The height of the texture, in pixels.

mtlTexture
IntPtr

A handle to the Metal texture to wrap.

Returns

A new SKGraphiteBackendTexture, or null if it could not be created.

Applies to