mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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 <eric.engestrom@intel.com> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
add4b8930a
commit
4c3b293242
1 changed files with 2 additions and 7 deletions
|
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue