Skip to content

Commit

Permalink
Fix textureSampleCompareLevel sample point code. (#4194)
Browse files Browse the repository at this point in the history
This is bug that surfaced only if the test failed. The issue
is that textureSampleLevel, which it uses when textureSampleCompareLevel
fails, needs the level parameter to be i32/u32 when the texture
is a depth texture.

Again, this only happens when we already know the test failed
so this doesn't affect pass/fail. It only affects getting
the sample points.
  • Loading branch information
greggman authored Feb 20, 2025
1 parent 5d70ace commit 6b56a20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ export async function checkCallResults<T extends Dimensionality>(
break;
case 'textureSampleCompareLevel':
debugCall.builtin = 'textureSampleLevel';
debugCall.levelType = 'f';
debugCall.levelType = 'u';
debugCall.mipLevel = 0;
break;
default:
Expand Down

0 comments on commit 6b56a20

Please sign in to comment.