Skip to content

Gdk.VulkanContext

class — extends DrawContext

:::warning Deprecated since 4.14 This API is deprecated. :::

Represents the platform-specific Vulkan draw context.

GdkVulkanContexts are created for a surface using Surface.create_vulkan_context, and the context will match the characteristics of the surface.

Support for GdkVulkanContext is platform-specific and context creation can fail, returning None context.

Signals

images-updated

def on_images_updated(self) -> None: ...

Emitted when the images managed by this context have changed.

Usually this means that the swapchain had to be recreated, for example in response to a change of the surface size.