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

Function AddIfSupported

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

Source from the content-addressed store, hash-verified

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

Callers 1

CreateInstanceFunction · 0.85

Calls 4

IsSupportedFunction · 0.85
FullMethod · 0.45
OffsetCapacityMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected