Skip to content
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

Fix textureSampleCompareLevel sample point code. #4194

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

greggman
Copy link
Contributor

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.

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.
@greggman greggman requested a review from shrekshao February 20, 2025 19:28
@greggman greggman merged commit 6b56a20 into gpuweb:main Feb 20, 2025
1 check passed
@greggman greggman deleted the fix-textureSampleCompareLevel-debug branch February 20, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants