mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
a/vk: Add small chain helper
This commit is contained in:
parent
e79b23275b
commit
a5efaceba5
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue