Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
onelivesleft's avatar
onelivesleft
Honored Guest
2 years ago
Solved

Quest 3 Vulkan Validation Layer

Is it possible to use the vulkan validation layer on Quest 3?

I've enabled the XR_EXT_DEBUG_UTILS_EXTENSION when creating the xr instance, and have created a debug callback using xrCreateDebugUtilsMessengerEXT.  I tried doing the same thing in the vulkan instance: I add VK_EXT_DEBUG_UTILS_EXTENSION, but when I call vkGetInstanceProcAddr to get vkCreateDebugReportCallbackEXT I get null (so I'm assuming the xr version takes precedence and you don't use the vk extension). 

When I try to add VK_LAYER_KHRONOS_validation layer to the VkInstanceCreateInfo and call xrCreateVulkanInstanceKHR, it fails, returning XR_ERROR_VALIDATION_FAILURE.

  • Turned out what I was doing was correct, I was just missing the important step of copying libVkLayer_khronos_validation.so into AndroidProject\app\src\main\jniLibs\arm64-v8a
    Once I copied that in, it all just worked.

1 Reply

  • Turned out what I was doing was correct, I was just missing the important step of copying libVkLayer_khronos_validation.so into AndroidProject\app\src\main\jniLibs\arm64-v8a
    Once I copied that in, it all just worked.