a/vk: Add small chain helper

This commit is contained in:
Jakob Bornecrantz 2022-08-25 16:57:36 +01:00
parent e79b23275b
commit a5efaceba5

View file

@ -29,6 +29,19 @@
#include <xrt/xrt_handles.h>
/*
*
* Small internal helpers.
*
*/
#define CHAIN(STRUCT, NEXT) \
do { \
(STRUCT).pNext = NEXT; \
NEXT = (VkBaseInStructure *)&(STRUCT); \
} while (false)
/*
*
* String helper functions.