Skip to content

Instantly share code, notes, and snippets.

@fredemmott
Created February 1, 2026 15:04
Show Gist options
  • Select an option

  • Save fredemmott/761bb5308ab694405689e6456201eaa5 to your computer and use it in GitHub Desktop.

Select an option

Save fredemmott/761bb5308ab694405689e6456201eaa5 to your computer and use it in GitHub Desktop.

Working on my API layer tool and I think I'm hitting "spec doesn't define either way" behavior, but I'm not certain:

If I set XR_ENABLE_API_LAYERS=XR_LAYER_this_layer_does_not_exist in my environment (to attempt to enable an invalid explicit layer)

  • xrCreateInstance() fails with XR_ERROR_API_LAYER_NOT_PRESENT - this seems correct
  • xrEnumerateApiLayerProperties without an instance succeeds - this feels wrong, but I'm not finding a clear definition of correct behavior here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment