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

Function SelectAdapterByFamily

engine/graphics/src/graphics.cpp:63–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 static uint32_t CalculateStd140StructSize(const ShaderResourceTypeInfo* type_infos, uint32_t type_index, bool update_offsets);
62
63 static bool SelectAdapterByFamily(AdapterFamily family)
64 {
65 if (family != ADAPTER_FAMILY_NONE)
66 {
67 GraphicsAdapter* next = g_adapter_list;
68
69 while(next)
70 {
71 if (next->m_Family == family)
72 {
73 if (next->m_IsSupportedCb())
74 {
75 g_functions = next->m_RegisterCb();
76 g_adapter = next;
77 return true;
78 }
79 }
80 next = next->m_Next;
81 }
82 }
83
84 return false;
85 }
86
87 uint32_t GetLinkedGraphicsAdapterCount()
88 {

Callers 1

InstallAdapterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected