KhronosGroup / OpenXR-Docs

OpenXR Specification sources and related material
Other
144 stars 64 forks source link

Unclear behavior on invalid XrSwapchainSubImage imageArrayIndex #34

Open Ralith opened 5 years ago

Ralith commented 5 years ago

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?

rpavlik commented 5 years ago

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]