Skip to content
New issue

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

Handle precision statements properly in the parse tree #972

Open
afd opened this issue Apr 22, 2020 · 0 comments
Open

Handle precision statements properly in the parse tree #972

afd opened this issue Apr 22, 2020 · 0 comments

Comments

@afd
Copy link
Contributor

afd commented Apr 22, 2020

As a shortcut from the early days of the project, the PrecisionDeclaration class has a String field that captures the text from the input file associated with a precision statement.

This should be changed so that the class has fields:

  • TypeQualifier precisionQualifier;
  • Type type;

The precisionQualifier field should only be allowed to be HIGHP, MEDIUMP or LOWP.

The type field should only allowed to be BasicType.INT, BasicType.FLOAT, or an instance of SamplerType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant