[Mesa-dev] [PATCH 08/28] vulkan/wsi: Add a mock image creation extension
Jason Ekstrand
jason at jlekstrand.net
Thu Nov 16 21:28:56 UTC 2017
---
src/vulkan/wsi/wsi_common.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h
index 9c1899c..0e1604a 100644
--- a/src/vulkan/wsi/wsi_common.h
+++ b/src/vulkan/wsi/wsi_common.h
@@ -30,6 +30,16 @@
#include <vulkan/vulkan.h>
#include <vulkan/vk_icd.h>
+/* This is guaranteed to not collide with anything because it's in the
+ * VK_KHR_swapchain namespace but not actually used by the extension.
+ */
+#define WSI_STRUCTURE_TYPE_IMAGE_CREATE_INFO (VkStructureType)1000001002
+
+struct wsi_image_create_info {
+ VkStructureType sType;
+ const void *pNext;
+};
+
struct wsi_image {
VkImage image;
VkDeviceMemory memory;
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list