-
Notifications
You must be signed in to change notification settings - Fork 303
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
Remove the void type #1460
Remove the void type #1460
Conversation
I don't think #1413 (comment) presents a strong case for keeping |
I think there's another option: keep the concept of the void type in the spec, but forbid authors from spelling it inside WGSL programs. We keep the philosophical type system simplicity that @dneto0 desired during today's office hours call, while removing the concept of the void type from every shader author's brain. |
@dneto0 this is rebased now, please have another look! |
Thank you for reviewing and rebasing! |
Was removed with: gpuweb/gpuweb#1460 Bug: tint:677 Change-Id: If08cb450189c6158561051ef6e8f2439c60bc010 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/47140 Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
`void` was removed in gpuweb/gpuweb#1460
Closes #1219
Closes #743
Basically, there is no utility right now for this type. It's obvious from looking at a function signature if a return statement is required, without the type.
If we ever feel that the type is needed, we can bring it back.