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

Function InstallAdapter

engine/graphics/src/test/test_app_graphics.cpp:906–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906static void InstallAdapter(int argc, char **argv)
907{
908 dmGraphics::AdapterFamily family = dmGraphics::ADAPTER_FAMILY_VULKAN;
909
910 for (int i = 0; i < argc; ++i)
911 {
912 if (strcmp(argv[i], "opengl") == 0)
913 {
914 family = dmGraphics::ADAPTER_FAMILY_OPENGL;
915 }
916 }
917
918 dmGraphics::InstallAdapter(family);
919}
920
921TEST(App, Run)
922{

Callers 2

SetUpMethod · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected