MCPcopy Create free account
hub / github.com/defold/defold / IsSupported

Function IsSupported

engine/graphics/src/vulkan/graphics_vulkan_context.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

AddIfSupportedFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected