SKGraphiteBackendTexture.CreateVulkan Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.