Skip to content

Fix readTextureToTextureViews for multisampled textures#4049

Merged
greggman merged 1 commit intogpuweb:mainfrom
greggman:fix-readTextureToTexelViews-multisampled
Nov 19, 2024
Merged

Fix readTextureToTextureViews for multisampled textures#4049
greggman merged 1 commit intogpuweb:mainfrom
greggman:fix-readTextureToTexelViews-multisampled

Conversation

@greggman
Copy link
Copy Markdown
Contributor

@greggman greggman commented Nov 19, 2024

I'm not sure when this bug was introduced. The tests this broke used to pass (textureLoad:multisampled). Fixed the bug and added a test to hopefully find it quicker if it breaks in the future.

Also added a test for createTextureWithRandomDataAndGetTexels with a generator. This was fixed in a previous PR without a a specific test as the fact that it failed other tests showed it needed fixing but I decided it's probably best to keep these tests too.

@greggman greggman requested a review from kainino0x November 19, 2024 22:06
Comment thread src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts Outdated
@greggman greggman enabled auto-merge (squash) November 19, 2024 23:21
I'm not sure when this bug was introduced. These tests used
to pass. Fixed the bug and Added a test to hopefully find it
quicker if it breaks in the future.

Also added a test for createTextureWithRandomDataAndGetTexels
with a generator. This was fixed in a previous PR without a
a specific test as the fact that it failed other tests showed
it needed fixing but I decided it's probably best to keep
these tests too.
@greggman greggman force-pushed the fix-readTextureToTexelViews-multisampled branch from e018013 to 1383d3f Compare November 19, 2024 23:26
@greggman greggman merged commit 003cb57 into gpuweb:main Nov 19, 2024
@greggman greggman deleted the fix-readTextureToTexelViews-multisampled branch November 20, 2024 00:17
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