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: remove stride #1681

Merged
merged 1 commit into from
Jan 24, 2022
Merged

wgsl: remove stride #1681

merged 1 commit into from
Jan 24, 2022

Conversation

kvark
Copy link
Member

@kvark kvark commented Jan 21, 2022

Matches https://github.com/gpuweb/gpuweb/pull
I first thought we'd remove the stride from the IR but then realized the IR is a bit more detailed than WGSL. In particular, it already has struct member offsets and struct sizes. So keeping stride in the IR is more consistent.

@kvark kvark requested a review from jimblandy January 21, 2022 15:30
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 in general - just need to fix a stray attribute, and I had a few questions.

src/front/wgsl/mod.rs Outdated Show resolved Hide resolved
src/front/wgsl/mod.rs Outdated Show resolved Hide resolved
src/front/glsl/types.rs Show resolved Hide resolved
src/valid/type.rs Outdated Show resolved Hide resolved
src/valid/type.rs Outdated Show resolved Hide resolved
tests/out/hlsl/access.hlsl Outdated Show resolved Hide resolved
@kvark kvark enabled auto-merge (rebase) January 24, 2022 21:42
@kvark kvark merged commit 4c91abe into gfx-rs:master Jan 24, 2022
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.

2 participants