MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / GetMetalExport

Function GetMetalExport

layers/state_tracker/image_state.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118#ifdef VK_USE_PLATFORM_METAL_EXT
119static 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
133namespace vvl {

Callers 3

SemaphoreMethod · 0.70
ImageMethod · 0.70
ImageViewMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected