Currently, creating a headless session is needlessly complicated, and developers effectively need to lie that they use a graphics API that they are not actually intending to use.
Since no graphics API is a valid choice of graphics API, I made a implementation that simplifies creating such sessions.
The inner create_session will fail with the correct XrResult if headless session is attempted without first enabling XR_MND_headless.
Currently, creating a headless session is needlessly complicated, and developers effectively need to lie that they use a graphics API that they are not actually intending to use.
Since no graphics API is a valid choice of graphics API, I made a implementation that simplifies creating such sessions.
The inner
create_session
will fail with the correctXrResult
if headless session is attempted without first enablingXR_MND_headless
.Usage example: