We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parser throws an error when given a function whose return type has a precision qualifier.
Input:
lowp float foo(lowp float bar) { return 1.0; }
Error:
Parse error: Error in input: Ln: 1 Col: 6 lowp float foo(lowp float bar) { ^ Expecting: Type qualifier, ';' or 'layout'
Expected output:
lowp float f(lowp float f){return 1.;}
The error goes away when you remove the precision qualifier from the return type:
float foo(lowp float bar) { return 1.0; }
Output:
float f(lowp float f){return 1.;}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The parser throws an error when given a function whose return type has a precision qualifier.
Input:
Error:
Expected output:
The error goes away when you remove the precision qualifier from the return type:
Output:
The text was updated successfully, but these errors were encountered: