gi-gdk-4.0.1: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Objects.VulkanContext

Description

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

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

Support for VulkanContext is platform-specific, context creation can fail, returning Nothing context.

Synopsis

Exported types

class (GObject o, IsDescendantOf VulkanContext o) => IsVulkanContext o Source #

Type class for types which can be safely cast to VulkanContext, for instance with toVulkanContext.

Instances

Instances details
(GObject o, IsDescendantOf VulkanContext o) => IsVulkanContext o Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

toVulkanContext :: (MonadIO m, IsVulkanContext o) => o -> m VulkanContext Source #

Cast to VulkanContext, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

Signals

imagesUpdated

type C_VulkanContextImagesUpdatedCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type VulkanContextImagesUpdatedCallback = IO () Source #

This signal is 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.

afterVulkanContextImagesUpdated :: (IsVulkanContext a, MonadIO m) => a -> VulkanContextImagesUpdatedCallback -> m SignalHandlerId Source #

Connect a signal handler for the imagesUpdated signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vulkanContext #imagesUpdated callback

onVulkanContextImagesUpdated :: (IsVulkanContext a, MonadIO m) => a -> VulkanContextImagesUpdatedCallback -> m SignalHandlerId Source #

Connect a signal handler for the imagesUpdated signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vulkanContext #imagesUpdated callback