KhronosGroup / MoltenVK

MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.

Repository from Github https://github.comKhronosGroup/MoltenVKRepository from Github https://github.comKhronosGroup/MoltenVK

Presenting suboptimal image triggers metal assertion

TheMostDiligent opened this issue · comments

When vkAcquireNextImageKHR returns VK_SUBOPTIMAL_KHR, it should still be OK to use the image for rendering:

VK_SUBOPTIMAL_KHR A swapchain no longer matches the surface properties exactly, but can still be used to present to the surface successfully.

This, however, triggers Metal assertion:

validateRenderPassDescriptor:991: failed assertion `RenderPass Descriptor Validation
renderTargetWidth (1600) must be <= minimum attachment width (1).
renderTargetHeight (1200) must be <= minimum attachment height (1).