KhronosGroup / OpenXR-Tutorials

OpenXR Tutorials
https://www.openxr-tutorial.com/
Apache License 2.0
76 stars 15 forks source link

android api layers #80

Closed rbessems closed 10 months ago

rbessems commented 11 months ago

Add a JSON file as attached to the APK assets

openxr.zip

And when building the loader in cmake we have the following:

OPTION(USE_OPENXR_LAYERS "Use OpenXR layers" ON)
set(BUILD_ALL_EXTENSIONS ON CACHE INTERNAL "Build loader and layers with all extensions")
set(BUILD_TESTS OFF CACHE INTERNAL "Build tests")
set(BUILD_CONFORMANCE_TESTS OFF CACHE INTERNAL "Build conformance tests")
set(BUILD_API_LAYERS ${USE_OPENXR_LAYERS} CACHE INTERNAL "Use OpenXR layers")
FetchContent_Declare(
        oxr
        URL https://github.com/KhronosGroup/OpenXR-SDK-Source.git)
AndrewRichards-Code commented 11 months ago

I have just tested this on a Meta Quest 2 and was able to load the XR_APILAYER_LUNARG_core_validation layer. I will update the chapter 6.3 text.

AndrewRichards-Code commented 11 months ago

Commit 859d1d9 updates the chapter 6.3 text to include Android's usage of API layers. We just need to review the text and then we can close this issue.