MCPcopy Create free account
hub / github.com/carbonengine/trinity / StripSemanticsInsideStucts

Function StripSemanticsInsideStucts

shadercompiler/EffectCompilerMetal.cpp:573–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void StripSemanticsInsideStucts( ASTNode* structNode )
574{
575 for( auto memberNode : structNode->GetChildren() )
576 {
577 assert( memberNode && memberNode->GetNodeType() == NT_STRUCT_MEMBER );
578
579 for( auto childNode : memberNode->GetChildren() )
580 {
581 assert( childNode && childNode->GetNodeType() == NT_NAME_DECLARATION );
582
583 Symbol* symbol = childNode->GetSymbol();
584 if( symbol && symbol->semantic )
585 {
586 symbol->semantic.start = symbol->semantic.end = nullptr;
587 }
588 }
589 }
590}
591
592void CollectGlobals(
593 ParserState& state,

Callers 2

CollectGlobalsFunction · 0.85
CompileEffectMethod · 0.85

Calls 2

GetNodeTypeMethod · 0.80
GetSymbolMethod · 0.80

Tested by

no test coverage detected