| 117 | |
| 118 | #ifdef VK_USE_PLATFORM_METAL_EXT |
| 119 | static bool GetMetalExport(const VkImageCreateInfo* info, VkExportMetalObjectTypeFlagBitsEXT object_type_required) { |
| 120 | bool retval = false; |
| 121 | auto export_metal_object_info = vku::FindStructInPNextChain<VkExportMetalObjectCreateInfoEXT>(info->pNext); |
| 122 | while (export_metal_object_info) { |
| 123 | if (export_metal_object_info->exportObjectType == object_type_required) { |
| 124 | retval = true; |
| 125 | break; |
| 126 | } |
| 127 | export_metal_object_info = vku::FindStructInPNextChain<VkExportMetalObjectCreateInfoEXT>(export_metal_object_info->pNext); |
| 128 | } |
| 129 | return retval; |
| 130 | } |
| 131 | #endif // VK_USE_PLATFORM_METAL_EXT |
| 132 | |
| 133 | namespace vvl { |