MCPcopy Create free account
hub / github.com/csyonghe/Spire / IsConsistentGlobalComponentDefinition

Function IsConsistentGlobalComponentDefinition

Source/SpireCore/Closure.cpp:479–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477 }
478
479 bool IsConsistentGlobalComponentDefinition(ShaderComponentSymbol * comp0, ShaderComponentSymbol * comp1)
480 {
481 if (comp0->Type->DataType != comp1->Type->DataType)
482 return false;
483 if (comp0->Implementations.First()->Worlds.Count() != comp1->Implementations.First()->Worlds.Count())
484 return false;
485 for (auto w : comp0->Implementations.First()->Worlds)
486 if (!comp1->Implementations.First()->Worlds.Contains(w))
487 return false;
488 return true;
489 }
490
491 void GatherComponents(DiagnosticSink * err, ShaderClosure * closure, ShaderClosure * subClosure)
492 {

Callers 1

GatherComponentsFunction · 0.85

Calls 2

CountMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected