-
Notifications
You must be signed in to change notification settings - Fork 58
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
sr: Deduplicate match
ranges like spirv
header
#242
sr: Deduplicate match
ranges like spirv
header
#242
Conversation
Solve some clippy lints by getting rid of these aliases of overlapping `Op`s. Unfortunately, just like in `spirv`, this biases towards the `NV` rather than `KHR` stabilized raytracing ops. Note that in `spirv` the `Op`s are aliases in code rather than omitted altogether: don't think we can do that for the range match here though unless deducing whether the shader was compiled with the NV or KHR variant, even though the KHR variant is already stabilized for quite some time.
d29152c
to
f19da5f
Compare
@msiglreith are you okay with this change, or should we see if we can prefer the |
@MarijnS95 |
@msiglreith definitely, it might just be a hassle to implement as all parts of the generator redo these kinds of evaluations on the parsed SPIR-V grammar :( |
@msiglreith done now! |
13892e1
to
f0c0d46
Compare
f0c0d46
to
05d13a1
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.
great thanks!
(huh so many vendors already)
Yup rather than only listing the few vendors with ops currently I just copied the whole thing from ash-rs/ash#676. |
Solve some clippy lints by getting rid of these aliases of overlapping
Op
s. Unfortunately, just like inspirv
, this biases towards theNV
rather thanKHR
stabilized raytracing ops.Note that in
spirv
theOp
s are aliases in code rather than omitted altogether: don't think we can do that for the range match here though unless deducing whether the shader was compiled with the NV or KHR variant, even though the KHR variant is already stabilized for quite some time.