Proposed Vulkan Extension To Improve Memory Sharing With Apple's Metal

Written by Michael Larabel in Vulkan on 20 August 2024 at 06:26 AM EDT. 12 Comments
VULKAN
LunarG engineer Aitor Camacho Larrondo has proposed VK_EXT_external_memory_metal, a new extension for the Vulkan API to allow for more easily sharing memory objects from Vulkan with Apple's Metal.

VK_EXT_external_memory_metal allows for exporting non-Vulkan handles from Vulkan memory objects that can then be referenced outside the scope of the Vulkan device instance that created them. This Metal External Memory support would allow for better memory sharing with Apple Metal drivers. There is already the VK_EXT_metal_objects extension to expose underlying Metal resources, but that currently requires some special handling and semantics that don't align with the more straight-forward VK_EXT_external_memory_metal approach.

VK_EXT_external_memory_metal is similar in nature to VK_KHR_external_memory_win32 for easier memory sharing on Windows platforms such as with Direct3D and VK_ANDROID_external_memory_android_hardware_buffer for native Android hardware buffers. VK_EXT_external_memory_metal may be useful for the likes of the MoltenVK Vulkan implementation built atop the Metal API for macOS/iOS devices.

Vulkan external memory metal extension


More details on this proposed Vulkan external memory Metal extension via GitHub.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week