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

[wgsl-in] Fix expected min arg count of textureLoad #2584

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Oct 23, 2023

fixes #2583

Also double-checked the min arg count of the other functions.

It was most likely incorrect due to the spec previously only having overloads with min 3 args but with gpuweb/gpuweb#4326 (which we have parts of implemented already) new overloads with min 2 args have been added.

@teoxoy teoxoy requested a review from a team as a code owner October 23, 2023 14:37
Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I haven't tried it, but it seems like it would be nicer to compute min_args's final value in one place, as soon as we knew the image type, rather than having it be a side effect of random closures. But that problem was there already, so we don't need to address it here.

@jimblandy jimblandy enabled auto-merge (rebase) October 23, 2023 17:21
@jimblandy jimblandy merged commit f081f06 into gfx-rs:master Oct 23, 2023
5 checks passed
@teoxoy teoxoy deleted the fix-msg branch October 23, 2023 18:06
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.

Wrong number of arguments error is wrong/misleading
2 participants