-
Notifications
You must be signed in to change notification settings - Fork 859
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
HLSL: Possibility to represent variable in binary form #3259
HLSL: Possibility to represent variable in binary form #3259
Conversation
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.
Looks okay overall, aside from a couple issues mentioned on specific lines, and one major one: this also adds support for binary literals to GLSL, which is not actually a thing that GLSL supports. You need to add a check to make sure that we're not compiling GLSL and to bail out early in that case. I would also like to see tests for the error cases here, both the "literal too big/too long" error messages and that this doesn't work with GLSL. There should be existing "negative" test files to which you can add some new cases.
39e753a
to
6cd56bf
Compare
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.
The code itself looks fine now, just one issue with your change to a test causing it to no longer generate SPIR-V code where it had previously done so. I think you need to move the negative tests to a different file, possibly a new test file.
The change fixes the issue 3089
6cd56bf
to
af98717
Compare
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, thanks.
Fix for Issues: #3089