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

Document proc::layouter. #1693

Merged
merged 1 commit into from
Jan 24, 2022
Merged

Document proc::layouter. #1693

merged 1 commit into from
Jan 24, 2022

Conversation

jimblandy
Copy link
Member

Rename TypeLayoutError to LayoutErrorInner, for consistency. It makes no sense to have 'Type' in the name of one of the error types but not the other. The 'Inner' convention is used by the module types.

Cite the layout rules in the WGSL spec, not a GitHub issue.

(I just wrote this while reviewing another PR.)

Rename `TypeLayoutError` to `LayoutErrorInner`, for consistency. It makes no
sense to have 'Type' in the name of one of the error types but not the other.
The 'Inner' convention is used by the module types.

Cite the layout rules in the WGSL spec, not a GitHub issue.
Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very well done

@@ -83,6 +101,19 @@ impl Layouter {
(start..start + span, alignment)
}

/// Extend this `Layouter` with layouts for any new entries in `types`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sweet, this function needed some text on it for sure!

@kvark kvark merged commit f61ac3e into gfx-rs:master Jan 24, 2022
@jimblandy jimblandy deleted the doc-layouter branch February 21, 2022 23:13
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