MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / parseShaderStrings

Method parseShaderStrings

glslang/MachineIndependent/ParseHelper.cpp:196–205  ·  view source on GitHub ↗

Parse an array of strings using yyparse, going through the preprocessor to tokenize the shader strings, then through the GLSL scanner. Returns true for successful acceptance of the shader, false if any errors.

Source from the content-addressed store, hash-verified

194// Returns true for successful acceptance of the shader, false if any errors.
195//
196bool TParseContext::parseShaderStrings(TPpContext& ppContext, TInputScanner& input, bool versionWillBeError)
197{
198 currentScanner = &input;
199 ppContext.setInput(input, versionWillBeError);
200 yyparse(this);
201
202 finish();
203
204 return numErrors == 0;
205}
206
207// This is called from bison when it has a parse (syntax) error
208// Note though that to stop cascading errors, we set EOF, which

Callers 2

InitializeSymbolTableFunction · 0.45
operator()Method · 0.45

Calls 2

yyparseFunction · 0.85
setInputMethod · 0.80

Tested by

no test coverage detected