-
Notifications
You must be signed in to change notification settings - Fork 959
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
[core] More vertex buffer validation #6804
Conversation
Signed-off-by: sagudev <[email protected]>
@abey79 could you test if this raises error where you expected to? |
TL;DR: yes, my offending code now panics 👍🏻 edit: on second thought, that message seems wrong: the stride is 8 bytes and the attributes are 32 bytes in total, which is indeed non-compliant (the stride is allowed to be greater, not smaller). Can be reproduced with this branch (https://github.com/abey79/vsvg/tree/antoine/wgpu-fix-test), which patches wgpu to this commit.
|
Repeating my edit above for visibility: on second thought, that message seems wrong. The stride is 8 bytes and the attributes are 32 bytes in total, which is indeed non-compliant (the stride is allowed to be greater, not smaller). |
Signed-off-by: sagudev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some comments
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Connections
Fix #6799
Testing
CTS run in servo:
Checklist
cargo fmt
.taplo format
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.