| 58 | } |
| 59 | |
| 60 | static bool AddIfSupported(const dmArray<VkExtensionProperties>& supported_extensions, const char* extension, dmArray<const char*>& extensions) |
| 61 | { |
| 62 | if (!IsSupported(supported_extensions, extension)) |
| 63 | { |
| 64 | dmLogDebug("%s was not supported", extension); |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | if (extensions.Full()) |
| 69 | extensions.OffsetCapacity(4); |
| 70 | extensions.Push(extension); |
| 71 | return true; |
| 72 | } |
| 73 | |
| 74 | |
| 75 | // This functions is invoked by the vulkan layer whenever |
no test coverage detected