OpenXR-Docs
OpenXR-Docs copied to clipboard
Unclear behavior on invalid XrSwapchainSubImage imageArrayIndex
None of the error cases described in xrEndFrame unambiguously cover this, though XR_ERROR_SWAPCHAIN_RECT_INVALID seems like a good bet. Maybe add "or on an array layer that doesn't exist" to the description of that error?
WG response: The answer is XR_ERROR_VALIDATION_FAILURE - in nearly all cases, the runtime is required to check valid usage conditions (unlike vulkan), and if an error is not called out in the spec by name, validation failure is the "fallback".
I have opened internal issue 1235 for this topic.
[KHR:openxr/openxr#1235]