| Top |
| VkDevice | gdk_vulkan_context_get_device () |
| uint32_t | gdk_vulkan_context_get_draw_index () |
| VkSemaphore | gdk_vulkan_context_get_draw_semaphore () |
| VkImage | gdk_vulkan_context_get_image () |
| VkFormat | gdk_vulkan_context_get_image_format () |
| VkInstance | gdk_vulkan_context_get_instance () |
| uint32_t | gdk_vulkan_context_get_n_images () |
| VkPhysicalDevice | gdk_vulkan_context_get_physical_device () |
| VkQueue | gdk_vulkan_context_get_queue () |
| uint32_t | gdk_vulkan_context_get_queue_family_index () |
GdkVulkanContext is an object representing the platform-specific Vulkan draw context.
GdkVulkanContexts are created for a GdkWindow using
gdk_window_create_vulkan_context(), and the context will match the
the characteristics of the window.
Support for GdkVulkanContext is platform-specific, context creation
can fail, returning NULL context.
VkDevice
gdk_vulkan_context_get_device (GdkVulkanContext *context);
Gets the Vulkan device that this context is using.
uint32_t
gdk_vulkan_context_get_draw_index (GdkVulkanContext *context);
Gets the index of the image that is currently being drawn.
This function can only be used between gdk_window_begin_draw_frame() and
gdk_window_end_draw_frame() calls for the toplevel window that the
context
is associated with.
VkSemaphore
gdk_vulkan_context_get_draw_semaphore (GdkVulkanContext *context);
Gets the Vulkan semaphore that protects access to the image that is currently being drawn.
This function can only be used between gdk_window_begin_draw_frame() and
gdk_window_end_draw_frame() calls for the toplevel window that the
context
is associated with.
VkImage gdk_vulkan_context_get_image (GdkVulkanContext *context,guint id);
Gets the image with index id
that this context is using.
VkFormat
gdk_vulkan_context_get_image_format (GdkVulkanContext *context);
Gets the image format that this context is using.
VkInstance
gdk_vulkan_context_get_instance (GdkVulkanContext *context);
Gets the Vulkan instance that is associated with context
.
uint32_t
gdk_vulkan_context_get_n_images (GdkVulkanContext *context);
Gets the number of images that this context is using in its swap chain.
VkPhysicalDevice
gdk_vulkan_context_get_physical_device
(GdkVulkanContext *context);
Gets the Vulkan physical device that this context is using.
VkQueue
gdk_vulkan_context_get_queue (GdkVulkanContext *context);
Gets the Vulkan queue that this context is using.
uint32_t
gdk_vulkan_context_get_queue_family_index
(GdkVulkanContext *context);
Gets the family index for the queue that this context is using.
See vkGetPhysicalDeviceQueueFamilyProperties().
typedef struct _GdkVulkanContext GdkVulkanContext;
The GdkVulkanContext struct contains only private fields and should not be accessed directly.