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

Function GetStageData

shadercompiler/EffectCompilerMetal.cpp:3854–3874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3852}
3853
3854bool GetStageData( ParserState& state, StageData& stage, std::vector<Symbol*> rtConstantBuffers, std::map<StringReference, ParameterAnnotation>& annotations )
3855{
3856 if( !CollectConstants( state, stage, annotations ) )
3857 {
3858 return false;
3859 }
3860
3861 for( size_t i = 0; i < rtConstantBuffers.size(); ++i )
3862 {
3863 if( !rtConstantBuffers[i] )
3864 {
3865 continue;
3866 }
3867 RegisterInputDescription r = { RT_CONSTANT_BUFFER, (uint32_t)i, 1, 0 };
3868 if( find( begin( stage.registerInputs ), end( stage.registerInputs ), r ) == end( stage.registerInputs ) )
3869 {
3870 stage.registerInputs.push_back( r );
3871 }
3872 }
3873 return true;
3874}
3875
3876bool GetStageDataForNode( ParserState& state, StageData& stage, ASTNode* functionHeader, std::map<StringReference, ParameterAnnotation>& annotations )
3877{

Callers 1

CompileEffectMethod · 0.85

Calls 7

CollectConstantsFunction · 0.85
GetStageDataForNodeFunction · 0.85
sizeMethod · 0.80
GetSymbolMethod · 0.80
GetChildOrNullMethod · 0.80
beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected