Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Validation layers don't allow null swapchains in xrGetRecommendedLayerResolutionMETA . #522

Open
Beyley opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working in layers

Comments

@Beyley
Copy link

Beyley commented Dec 30, 2024

Spec of XR_META_recommended_layer_resolution states "XrRecommendedLayerResolutionGetInfoMETA::layer may contain XR_NULL_HANDLE in place of valid XrSwapchain handle(s) for this function only, to obtain a recommended resolution resolution for the purpose of allocating a swapchain.", however if you attempt to do this, the validation layers will throw an error

error(xr_debug_messenger): [VALIDATION] xrGetRecommendedLayerResolutionMETA, VUID-XrSwapchainSubImage-swapchain-parameter, "Invalid XrSwapchain handle "swapchain" 0x0000000000000000"
error(xr_debug_messenger): [VALIDATION] xrGetRecommendedLayerResolutionMETA, VUID-XrCompositionLayerProjectionView-subImage-parameter, "Structure XrCompositionLayerProjectionView member subImage is invalid"
error(xr_debug_messenger): [VALIDATION] xrGetRecommendedLayerResolutionMETA, VUID-XrCompositionLayerProjection-views-parameter, "Structure XrCompositionLayerProjection member views is invalid"
error(xr_debug_messenger): [VALIDATION] xrGetRecommendedLayerResolutionMETA, VUID-XrRecommendedLayerResolutionGetInfoMETA-layer-parameter, "Structure XrRecommendedLayerResolutionGetInfoMETA member layer is invalid"
error(xr_debug_messenger): [VALIDATION] xrGetRecommendedLayerResolutionMETA, VUID-xrGetRecommendedLayerResolutionMETA-info-parameter, "Command xrGetRecommendedLayerResolutionMETA param info is invalid"
@rpavlik
Copy link
Contributor

rpavlik commented Jan 6, 2025

Ah, I remember reviewing this extension, that is a tricky exception to verify in generated code. I'll ping somebody.

@rpavlik rpavlik added bug Something isn't working in layers labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in layers
Projects
None yet
Development

No branches or pull requests

2 participants