aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/util/vk_util.h
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-28 14:48:09 +0000
committerEric Engestrom <[email protected]>2019-02-28 16:25:59 +0000
commit4c3b2932422a7b8cad6b8373bbcf30328754b76b (patch)
tree336d04972c06283fae1e0fa2b4f1c43a0c4d6926 /src/vulkan/util/vk_util.h
parentadd4b8930a219008731f76830ffc12b260b7d1da (diff)
vulkan: use VkBase{In,Out}Structure instead of a custom struct
VkBaseInStructure and VkBaseOutStructure are part of vulkan_core.h (which is part of vulkan.h) Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/vulkan/util/vk_util.h')
-rw-r--r--src/vulkan/util/vk_util.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/vulkan/util/vk_util.h b/src/vulkan/util/vk_util.h
index cc6a36e5acc..e7404b08808 100644
--- a/src/vulkan/util/vk_util.h
+++ b/src/vulkan/util/vk_util.h
@@ -27,17 +27,12 @@
#include <vulkan/vulkan.h>
-struct vk_struct_common {
- VkStructureType sType;
- struct vk_struct_common *pNext;
-};
-
#define vk_foreach_struct(__iter, __start) \
- for (struct vk_struct_common *__iter = (struct vk_struct_common *)(__start); \
+ for (struct VkBaseOutStructure *__iter = (struct VkBaseOutStructure *)(__start); \
__iter; __iter = __iter->pNext)
#define vk_foreach_struct_const(__iter, __start) \
- for (const struct vk_struct_common *__iter = (const struct vk_struct_common *)(__start); \
+ for (const struct VkBaseInStructure *__iter = (const struct VkBaseInStructure *)(__start); \
__iter; __iter = __iter->pNext)
/**