The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/vk: Add VK_NAME_OBJ_DISABLED helper

+11 -2
+11 -2
src/xrt/auxiliary/vk/vk_helpers.h
··· 641 641 642 642 #else 643 643 644 - #define VK_NAME_OBJ(VK, TYPE, SUFFIX, OBJ, NAME) \ 644 + #define VK_NAME_OBJ(VK, TYPE, SUFFIX, OBJ, NAME) VK_NAME_OBJ_DISABLED(VK, TYPE, OBJ) 645 + 646 + #endif 647 + 648 + /*! 649 + * Some combinations of Vulkan implementation and types are broken, we still 650 + * want type safety so we have this define. Examples of broken combinations: 651 + * 652 + * @ingroup aux_vk 653 + */ 654 + #define VK_NAME_OBJ_DISABLED(VK, TYPE, OBJ) \ 645 655 do { \ 646 656 XRT_MAYBE_UNUSED TYPE _thing = OBJ; \ 647 657 } while (false) 648 658 649 - #endif 650 659 651 660 // clang-format off 652 661 #define VK_NAME_INSTANCE(VK, OBJ, NAME) VK_NAME_OBJ(VK, VkInstance, INSTANCE, OBJ, NAME)