cancel
Showing results for 
Search instead for 
Did you mean: 

Quest 3 Vulkan Validation Layer

onelivesleft
Honored Guest

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.

1 ACCEPTED SOLUTION

Accepted Solutions

onelivesleft
Honored Guest

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.

View solution in original post

1 REPLY 1

onelivesleft
Honored Guest

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.