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: Update value creation and type comparisons #3482

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

jrprice
Copy link
Contributor

@jrprice jrprice commented Mar 12, 2024

We can now just pass 0 to type.create() regardless of the type. Type comparisons are also switched from type.kind === '<typename>' to type === Type.<type>.

We can now just pass `0` to type.create() regardless of the type. Type
comparisons are also switched from `type.kind === '<typename>'` to
`type === Type.<type>`.
@jrprice jrprice added the wgsl label Mar 12, 2024
@jrprice jrprice requested a review from ben-clayton March 12, 2024 16:26
@jrprice jrprice merged commit 1dacc16 into gpuweb:main Mar 12, 2024
1 check passed
@jrprice jrprice deleted the logical branch March 12, 2024 16:36
ben-clayton pushed a commit to ben-clayton/cts that referenced this pull request Mar 18, 2024
We can now just pass `0` to type.create() regardless of the type. Type
comparisons are also switched from `type.kind === '<typename>'` to
`type === Type.<type>`.
ben-clayton pushed a commit to ben-clayton/cts that referenced this pull request Mar 18, 2024
We can now just pass `0` to type.create() regardless of the type. Type
comparisons are also switched from `type.kind === '<typename>'` to
`type === Type.<type>`.
ben-clayton pushed a commit to ben-clayton/cts that referenced this pull request Mar 19, 2024
We can now just pass `0` to type.create() regardless of the type. Type
comparisons are also switched from `type.kind === '<typename>'` to
`type === Type.<type>`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants