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

Function diagnoseModuleUsingStack

Source/SpireCore/Closure.cpp:820–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818 }
819
820 void diagnoseModuleUsingStack(DiagnosticSink* sink, ShaderClosure * shader)
821 {
822 if (shader->Parent)
823 {
824 sink->diagnose(shader, Diagnostics::seeModuleBeingUsedIn, shader->Name, shader->Parent->Name);
825 diagnoseModuleUsingStack(sink, shader->Parent);
826 }
827 else
828 {
829 sink->diagnose(shader, Diagnostics::noteShaderIsTargetingPipeine, shader->Name, shader->Pipeline->SyntaxNode->Name);
830 sink->diagnose(shader->Pipeline->SyntaxNode, Diagnostics::alsoSeePipelineDefinition);
831 }
832 }
833
834 void CheckPipelineShaderConsistency(DiagnosticSink * err, ShaderClosure * shader)
835 {

Callers 1

Calls 1

diagnoseMethod · 0.80

Tested by

no test coverage detected