makeVulkan

fun makeVulkan(instancePtr: NativePointer, physicalDevicePtr: NativePointer, devicePtr: NativePointer, queuePtr: NativePointer, graphicsQueueIndex: Int, maxApiVersion: Int): GraphiteContext

Creates a Graphite context that submits work to a Vulkan queue.

The Vulkan objects are owned by the caller and must outlive the returned context.

Return

a Graphite context backed by Vulkan.

Parameters

instancePtr

native pointer to the VkInstance.

physicalDevicePtr

native pointer to the VkPhysicalDevice.

devicePtr

native pointer to the VkDevice.

queuePtr

native pointer to the VkQueue the work is submitted to.

graphicsQueueIndex

index of the queue family queuePtr belongs to; it must support graphics operations.

maxApiVersion

highest Vulkan API version (VK_MAKE_API_VERSION) Skia may use.