LinuxVulkanWindow

class LinuxVulkanWindow(instanceExtensions: List<String>, surfaceFactory: NativePointer, userData: NativePointer, properties: SkiaLayerProperties = SkiaLayerProperties(), transparent: Boolean = false)

Owns a Ganesh Vulkan device and swapchain for a toolkit's Linux window.

surfaceFactory is a native void* (*)(void* userData, void* instance) callback returning a VkSurfaceKHR, or null on failure. It must use the supplied instance and leave destruction to Skiko. userData and the toolkit window must remain valid until close. All calls run on the window thread. The host's LinuxSkiaLayerComponent.createVulkanWindow transfers ownership to the renderer, which closes this object when the layer detaches or its renderer changes.

Constructors

Link copied to clipboard
constructor(instanceExtensions: List<String>, surfaceFactory: NativePointer, userData: NativePointer, properties: SkiaLayerProperties = SkiaLayerProperties(), transparent: Boolean = false)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun close()