Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

[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 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
@teoxoy teoxoy deleted the fix-msg branch October 23, 2023 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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