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]: Correctly compare pointer types. #1381

Closed
wants to merge 1 commit into from

Conversation

jimblandy
Copy link
Member

Treat TypeInner::ValuePointer and TypeInner::Pointer as equivalent by
converting them to a canonical form before comparison.

Support ValuePointer in WGSL type output.

Fixes #1318.

@kvark
Copy link
Member

kvark commented Sep 17, 2021

This is definitely a welcome improvement! Let's chat about #1385 briefly before we proceed.

Treat `TypeInner::ValuePointer` and `TypeInner::Pointer` as equivalent by
converting them to a canonical form before comparison.

Support `ValuePointer` in WGSL type output.

Fixes gfx-rs#1318.
@jimblandy jimblandy force-pushed the value-pointer-equivalent branch from daf8489 to 7fab22a Compare September 27, 2021 17:47
@kvark
Copy link
Member

kvark commented Sep 27, 2021

Hasn't this been included in on of the landed PRs?

@jimblandy
Copy link
Member Author

This has been merged into master now. Not sure why GitHub doesn't think so.

@jimblandy jimblandy closed this Sep 27, 2021
@jimblandy jimblandy deleted the value-pointer-equivalent branch September 28, 2021 17:03
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.

Naga complains of type error on spec example code
2 participants