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.
Apache License 2.0
4.63k stars 402 forks source link

Add support for more VkResolveModeFlagBits #2257

Open billhollings opened 2 weeks ago

billhollings commented 2 weeks ago

For native MSAA on the GPU, Metal uses the equivalent of AVERAGE. For simplicity, MoltenVK uses SAMPLE_ZERO in the compute kernel when native MSAA is not supported.

As an enhancement, we could add support to the kernel function to resolve the other resolve modes. We could also run the compute kernel anytime a resolution mode other than AVERAGE is requested.