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

Validate ValuePointer exactly like a Pointer to a Scalar. #1875

Merged
merged 1 commit into from
Apr 30, 2022

Conversation

jimblandy
Copy link
Member

A ValuePointer type should always be handled exactly like the equivalent Pointer to Scalar type. To this end:

  • Adjust the handling of TypeFlags::ARGUMENT.

  • Neither Pointer nor ValuePointer types are ever DATA.

Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

Besides the comment, looks good!

src/valid/type.rs Outdated Show resolved Hide resolved
A `ValuePointer` type should always be handled exactly like the
equivalent `Pointer` to `Scalar` type. To this end:

- Adjust the handling of `TypeFlags::ARGUMENT`.

- Neither `Pointer` nor `ValuePointer` types are ever `DATA`.
@jimblandy jimblandy merged commit e872321 into gfx-rs:master Apr 30, 2022
@jimblandy jimblandy deleted the validate-type-value-ptr branch April 30, 2022 17:17
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