-
Notifications
You must be signed in to change notification settings - Fork 854
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
Cleaning the implementation of GL_EXT_texture_shadow_lod. Moving the #3345
Cleaning the implementation of GL_EXT_texture_shadow_lod. Moving the #3345
Conversation
@alelenv please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending CI.
I need to clean it up a bit more. Kindly hold on the merge for a day. |
@ncesario-lunarg or @arcady-lunarg : Can you clarify why was TempParser added in first place? |
@alelenv The "TempParser" was added as a workaround for getting the mangled name of a function, as currently the only way to get the mangled name of a function name is by running the full parser. The end goal was to associate only specific overloads of a function with a given extension ( |
fe61826
to
63739f1
Compare
parameter verifictation to a centralized place where all ther builtins are verified for correctness. Added verification for the new builtins with version and extension check These builtins are supported on GLSL since version 130 and GLES since version 300
63739f1
to
855417d
Compare
General feedback since glslang is the reference compiler for GLSL, it's paramount that any extension implemented should have extensive coverage:
This helps anyone using the compiler to cross validate the correctness of the spec. Having a buggy implementation makes the user confused and causes the spec to be not implemented correctly in shaders. |
@ncesario-lunarg @arcady-lunarg kindly review and merge this change. |
@@ -0,0 +1,160 @@ | |||
glsl.ext.textureShadowLod.frag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this is not an "error" test, is it supposed to be producing errors here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This covers both errors and non errors. This is in line with other glsl shaders. Where both good and bad cases are kept in the same shader file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feel free to add more test case as a follow up change. I just wanted to clean it up. Validation is now correct. We can add more test cases for ES.
I corrected the grammar on the commit message a bit, in general we prefer that those are written in the simple present. Thanks for the cleanup and the good commit message. |
parameter verification to a centralized place where all other built-ins are verified for correctness.