VulkanContext

open class VulkanContext(pointer: <Error class: unknown class><<Error class: unknown class>>) : DrawContext

GdkVulkanContext is an object representing the platform-specific Vulkan draw context.

GdkVulkanContexts are created for a surface using method@Gdk.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 null context.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val display: Display?

The GdkDisplay used to create the GdkDrawContext.

Link copied to clipboard
val gdkDrawContextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gdkVulkanContextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gioInitablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val surface: Surface?

The GdkSurface the context is bound to.

Functions

Link copied to clipboard
fun connectImagesUpdated(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the images managed by this context have changed.

Link copied to clipboard
open fun endFrame()

Ends a drawing operation started with gdk_draw_context_begin_frame().

Link copied to clipboard
open fun isInFrame(): Boolean

Returns true if @context is in the process of drawing to its surface.