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

Function HasSystemRegister

shadercompiler/EffectCompilerMetal.cpp:2315–2330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2313}
2314
2315bool HasSystemRegister( Symbol* symbol )
2316{
2317 assert( symbol );
2318
2319 bool hasSystemRegister = false;
2320 for( auto& it : symbol->registerSpecifier )
2321 {
2322 if( it.second.registerType == MetalRegister::System )
2323 {
2324 hasSystemRegister = true;
2325 break;
2326 }
2327 }
2328
2329 return hasSystemRegister;
2330}
2331
2332// Given a function header, gathers all inputs for [[stage_in]] into a flat structure
2333void GatherInputs( ASTNode* destStruct, std::vector<ASTNode*>& accessors, const std::vector<Symbol*>& params, ASTNode* header, ParserState& state )

Callers 3

GatherInputsFunction · 0.85
GatherSystemInputsFunction · 0.85
PatchShaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected