| 3852 | } |
| 3853 | |
| 3854 | bool 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 | |
| 3876 | bool GetStageDataForNode( ParserState& state, StageData& stage, ASTNode* functionHeader, std::map<StringReference, ParameterAnnotation>& annotations ) |
| 3877 | { |
no test coverage detected