diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index cd2144331..3bf022228 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -29,6 +29,19 @@ #include +/* + * + * Small internal helpers. + * + */ + +#define CHAIN(STRUCT, NEXT) \ + do { \ + (STRUCT).pNext = NEXT; \ + NEXT = (VkBaseInStructure *)&(STRUCT); \ + } while (false) + + /* * * String helper functions.