KhronosGroup / KhronosGroup/OpenXR-Docs

How to enforce `maxImageRectWidth`, especially for non-projection layers?

Open
#195 1 comment 0 reactions 0 assignees View on GitHub
synced to gitlab
Dominant language
Python
Stars
181
Forks
74
PR merge metrics
No merged PRs in 30d

Description

1. `XrViewConfigurationView` specifies `maxImageRectWidth` and `maxImageRectHeight` but no enforcement is explicitly specified. Should the runtime return `XR_ERROR_SWAPCHAIN_RECT_INVALID` if the application specifies a `XrSwapchainSubImage` that is larger than these limits?

2. It seems that `maxImageRectWidth` and `maxImageRectHeight` only apply to `XrCompositionLayerProjection`. Would it be possible to have some way for the runtime to limit the subimage extent for other layer types, such as `XrCompositionLayerQuad`? Or will the only mechanism for this be to limit the maximum extent of the entire swapchain image via `XrSystemGraphicsProperties.maxSwapchainImageWidth` and `Height`?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the specification entries for XrViewConfigurationView, XrSwapchainSubImage, XrCompositionLayerProjection, XrCompositionLayerQuad, and XrSystemGraphicsProperties. Compare their stated limits with the definition of XR_ERROR_SWAPCHAIN_RECT_INVALID. Done means the specification clearly resolves enforcement for projection and non-projection layers.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.