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

Function NewVarIdentifier

shadercompiler/ParserUtils.cpp:1054–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054ASTNode* NewVarIdentifier( ParserState& state, Symbol* var )
1055{
1056 auto access = state.NewNode( NT_VAR_IDENTIFIER, ScannerToken::ID( var->name ) );
1057 access->SetSymbol( var );
1058 access->SetType( var->type );
1059 return access;
1060}
1061
1062ASTNode* NewLiteralConst( ParserState& state, float value )
1063{

Callers 7

AddShaderTableArgumentsFunction · 0.85
GatherSystemFieldsFunction · 0.85
GatherInputsFunction · 0.85
GatherSystemInputsFunction · 0.85
GatherOutputsFunction · 0.85
PatchShaderFunction · 0.85
PatchRtShaderFunction · 0.85

Calls 3

NewNodeMethod · 0.80
SetSymbolMethod · 0.80
SetTypeMethod · 0.45

Tested by

no test coverage detected