| 47 | } |
| 48 | |
| 49 | static bool IsSupported(const dmArray<VkExtensionProperties>& extensions, const char* name) |
| 50 | { |
| 51 | for (uint32_t i = 0; i < extensions.Size(); ++i) |
| 52 | { |
| 53 | const VkExtensionProperties& extension = extensions[i]; |
| 54 | if (strcmp(extension.extensionName, name) == 0) |
| 55 | return true; |
| 56 | } |
| 57 | return false; |
| 58 | } |
| 59 | |
| 60 | static bool AddIfSupported(const dmArray<VkExtensionProperties>& supported_extensions, const char* extension, dmArray<const char*>& extensions) |
| 61 | { |
no test coverage detected