OpenXR-Docs icon indicating copy to clipboard operation
OpenXR-Docs copied to clipboard

Unclear behavior on invalid XrSwapchainSubImage imageArrayIndex

Open Ralith opened this issue 6 years ago • 1 comments

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?

Ralith avatar Oct 03 '19 15:10 Ralith

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]

rpavlik avatar Oct 03 '19 17:10 rpavlik