summaryrefslogtreecommitdiff
path: root/gdk/gdkvulkancontext.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-11-28 16:34:01 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-09 18:35:51 +0100
commit6d1d6e67925035742f70b9d167ab41dfe7075ff3 (patch)
tree9f9c032b4cf0a2d39027fe1d13e46f1b8ff45c95 /gdk/gdkvulkancontext.h
parentcca547e5bccda95fd8bf283bec1bfc7b564e88f6 (diff)
downloadgtk+-6d1d6e67925035742f70b9d167ab41dfe7075ff3.tar.gz
vulkan: Add more infrastructure
gdk_window_create_vulkan_context() now exists and will return a Vulkan context for the given window. It even initializes the surface. But it doesn't do anything useful yet.
Diffstat (limited to 'gdk/gdkvulkancontext.h')
-rw-r--r--gdk/gdkvulkancontext.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdk/gdkvulkancontext.h b/gdk/gdkvulkancontext.h
index 7a042f0a9b..ce85903dbd 100644
--- a/gdk/gdkvulkancontext.h
+++ b/gdk/gdkvulkancontext.h
@@ -28,6 +28,10 @@
#include <gdk/gdkversionmacros.h>
#include <gdk/gdktypes.h>
+#ifdef GDK_WINDOWING_VULKAN
+#include <vulkan/vulkan.h>
+#endif
+
G_BEGIN_DECLS
#define GDK_TYPE_VULKAN_CONTEXT (gdk_vulkan_context_get_type ())
@@ -47,6 +51,13 @@ GdkDisplay * gdk_vulkan_context_get_display (GdkVulkanCo
GDK_AVAILABLE_IN_3_90
GdkWindow * gdk_vulkan_context_get_window (GdkVulkanContext *context);
+#ifdef GDK_WINDOWING_VULKAN
+
+GDK_AVAILABLE_IN_3_90
+VkInstance gdk_vulkan_context_get_instance (GdkVulkanContext *context);
+
+#endif /* GDK_WINDOWING_VULKAN */
+
G_END_DECLS
#endif /* __GDK_VULKAN_CONTEXT__ */