VulkanContext

gdk.vulkan_context.VulkanContext is an object representing the platform-specific Vulkan draw context.

gdk.vulkan_context.VulkanContexts are created for a surface using gdk.surface.Surface.createVulkanContext, and the context will match the characteristics of the surface.

Support for gdk.vulkan_context.VulkanContext is platform-specific and context creation can fail, returning null context.

Members

Functions

connectImagesUpdated
ulong connectImagesUpdated(T callback, Flag!"After" after)

Connect to ImagesUpdated signal.

Mixed In Members

From mixin InitableT!()

init_
bool init_(gio.cancellable.Cancellable cancellable)

Initializes the object implementing the interface.

Inherited Members

From DrawContext

beginFrame
void beginFrame(cairo.region.Region region)

Indicates that you are beginning the process of redrawing region on the context's surface.

endFrame
void endFrame()

Ends a drawing operation started with gdk.draw_context.DrawContext.beginFrame.

getDisplay
gdk.display.Display getDisplay()

Retrieves the gdk.display.Display the context is created for

getFrameRegion
cairo.region.Region getFrameRegion()

Retrieves the region that is currently being repainted.

getSurface
gdk.surface.Surface getSurface()

Retrieves the surface that context is bound to.

isInFrame
bool isInFrame()

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

From Initable

init_
bool init_(gio.cancellable.Cancellable cancellable)

Initializes the object implementing the interface.