-
Notifications
You must be signed in to change notification settings - Fork 711
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
[SPIRV-V] Implement Shader Model 6.8 Expanded Comparison Sampling #6854
[SPIRV-V] Implement Shader Model 6.8 Expanded Comparison Sampling #6854
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 good. I like the amount of new tests. I think the code could be cleaned up a bit. I made comments in the cmp-bias function. I believe the same goes for the cmp-grad function.
e4c7422
to
9de329f
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, I just wonder why the optional argument parsing is more general than I expect. I could have the optional arguments understanding wrong.
@cassiebeckley Can you rebase the PR and push it again? For some reason the tests are not running. |
Compile `SampleCmpBias` using `OpImage*SampleDrefImplicitLod` and `SampleCmpGrad` using `OpImage*SampleDrefExplicitLod`. The existing handlers for `CalculateLevelOfDetail` and `CalculateLevelOfDetailUnclamped` work for the `SamplerComparisonSampler` overload, so no new code is needed other than tests.
f6443c3
to
318db25
Compare
Compile
SampleCmpBias
usingOpImage*SampleDrefImplicitLod
andSampleCmpGrad
usingOpImage*SampleDrefExplicitLod
.The existing handlers for
CalculateLevelOfDetail
andCalculateLevelOfDetailUnclamped
work for theSamplerComparisonSampler
overload, so no new code is needed other than tests.