Edit

SKGraphiteBackendTexture.CreateVulkan Method

Definition

Wraps an existing Vulkan image as a Graphite backend texture.

public static SkiaSharp.SKGraphiteBackendTexture CreateVulkan(int width, int height, SkiaSharp.SKGraphiteVkTextureInfo info, int imageLayout, uint queueFamilyIndex, IntPtr vkImage);

Parameters

width
Int32

The width of the texture, in pixels.

height
Int32

The height of the texture, in pixels.

info
SKGraphiteVkTextureInfo

The Vulkan texture descriptor.

imageLayout
Int32

The current Vulkan image layout of the texture.

queueFamilyIndex
UInt32

The index of the Vulkan queue family that owns the image.

vkImage
IntPtr

A handle to the Vulkan image to wrap.

Returns

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

Applies to