Add VulkanImage::CreateWithExternalMemory()
VulkanImage::CreateWithExternalMemory() is for creating a VkImage with memory which can be exported and used by foreign API. This method also uses vkGetPhysicalDeviceImageFormatProperties2() to query supported handle types instead of hardcoding in the VulkanImplementation. Bug: 848385 Change-Id: Ic8d93798b72e5c7a157c1fa924bcf3f3d15c275c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2107704 Commit-Queue: Peng Huang <penghuang@chromium.org> Reviewed-by:Vasiliy Telezhnikov <vasilyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#751366}
Showing
Please register or sign in to comment