-
Notifications
You must be signed in to change notification settings - Fork 657
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
[SPIR-V][Feature Request][SM6.7] Implement SampleCmpLevel #6613
Labels
Comments
Keenuts
added a commit
to Keenuts/DirectXShaderCompiler
that referenced
this issue
May 14, 2024
SampleCmpLevel is similar to SampleCmpLevel0, except the LOD level can be specified using either a const-offset, or a variable. This should be available starting SM6.7 Fixes microsoft#6613 Signed-off-by: Nathan Gauër <[email protected]>
Keenuts
added a commit
that referenced
this issue
May 22, 2024
SampleCmpLevel is similar to SampleCmpLevel0, except the LOD level can be specified using either a const-offset, or a variable. This should be available starting SM6.7 Fixes #6613 --------- Signed-off-by: Nathan Gauër <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SM6.7 added SampleCmlLevel which is similar to
SampleCmp
, but which fixes the LOD at which the comparison is done.Seems like this could be implemented with a small change in DXC:
SampleCmpLevelZero
uses the correct instruction, but fixes the LOD to 0. But passing a register is possible, so seems like implementation will be straightforward.The text was updated successfully, but these errors were encountered: