Skip to content

Add size limit for swapchain

Jiali Zhang requested to merge quic_jialz/monado:jialz_swapchain into main

According to spec limit below when creating swapchain:
• width is the width of the image, must not be 0 or greater than the graphics API’s maximum limit.
• height is the height of the image, must not be 0 or greater than the graphics API’s maximum limit.

Add judgment to make sure width and height of texture in XrSwapchainCreateInfo structure don't greater than graphics API’s maximum limit.

Merge request reports