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

Function IsContextFeatureSupported

engine/graphics/src/graphics.cpp:2389–2397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2387 return g_functions.m_GetSupportedExtension(context, index);
2388 }
2389 bool IsContextFeatureSupported(HContext context, ContextFeature feature)
2390 {
2391 if (CONTEXT_FEATURE_VSYNC == feature)
2392 {
2393 AdapterFamily family = GetInstalledAdapterFamily();
2394 return !(family == ADAPTER_FAMILY_NULL || family == ADAPTER_FAMILY_NONE);
2395 }
2396 return g_functions.m_IsContextFeatureSupported(context, feature);
2397 }
2398 PipelineState GetPipelineState(HContext context)
2399 {
2400 return g_functions.m_GetPipelineState(context);

Callers 12

Graphics_GetAdapterInfoFunction · 0.85
InitializeGraphicsFunction · 0.85
SetSwapIntervalFunction · 0.85
NewMaterialFunction · 0.85
NewComputeProgramFunction · 0.85
SetTextureFunction · 0.85
GetShaderFunction · 0.85
GetShaderProgramFunction · 0.85
NullNewTextureFunction · 0.85

Calls 1

Tested by

no test coverage detected