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

Refactor maxStorage(Buffers/Textures)PerShaderStage tests #4137

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

greggman
Copy link
Contributor

These tests can't just set maxStorage(Buffers/Textures)In(Fragment/Vertex)Stage to the maximum limit because those can't be set above their ..PerShaderStage` counterpart.

Further, these were trying to use writable storage in the vertex stage which is not allowed.

@greggman greggman requested a review from shrekshao January 10, 2025 01:10
Copy link
Contributor

@shrekshao shrekshao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

* Adds a maximum limit upto a dependent limit.
*
* Example:
* You want to test `maxStorageBuffersPerShaderStage` in fragment stagee
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo 'stagee' -> 'stage'

These tests can't just set `maxStorage(Buffers/Textures)In(Fragment/Vertex)Stage
to the maximum limit because those can't be set above their
`..PerShaderStage` counterpart.

Further, these were trying to use writable storage in the vertex
stage which is not allowed.
@greggman greggman force-pushed the fix-maxSTBPerShaderStage-tests branch from e1f279d to 197457b Compare January 10, 2025 21:41
@greggman greggman enabled auto-merge (squash) January 10, 2025 21:41
@greggman greggman merged commit 9730681 into gpuweb:main Jan 10, 2025
1 check passed
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