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

Compat: refactor setBindGroup for 0 storage buffers in frag stage. #4125

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

greggman
Copy link
Contributor

Most of these tests didn't seem to require storage buffers to test what they were testing so I switched them to uniform buffers.

One of them used both storage and uniform buffers so I added more subcases so that it tests with both storage buffers and uniform buffers in compute stage only (this is for devices that don't support storage buffers in fragment stage). Then both compute+fragment stages like it was, but this case is skipped if there are no storage buffers in fragment shaders. I also added a case were it uses 2 uniform buffers.

It's not clear what it's testing needs to buffers to be of different types.

@greggman greggman requested a review from shrekshao December 30, 2024 23:31
Most of these tests didn't seem to require storage buffers
to test what they were testing so I switched them to uniform buffers.

One of them used both storage and uniform buffers so I added more
subcases so that it tests with both storage buffers and uniform
buffers in compute stage only (this is for devices that don't support
storage buffers in fragment stage). Then both compute+fragment stages
like it was, but this case is skipped if there are no storage buffers
in fragment shaders. I also added a case were it uses 2 uniform buffers.

It's not clear what it's testing needs to buffers to be of different
types.
@greggman greggman enabled auto-merge (squash) December 31, 2024 01:45
@greggman greggman merged commit 58f9d5d into gpuweb:main Dec 31, 2024
1 check passed
@greggman greggman deleted the setBindGroup branch December 31, 2024 01:50
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