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

(WIP) Add tests for empty buffers and map ranges #2879

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

nical
Copy link
Contributor

@nical nical commented Jul 13, 2022

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections

There are a couple of fixes related to zero-sized buffers in #2877,

Description

This PR adds some tests to verify the fixes in #2877.
The tests aren't quite ready to land because creating a zero-sized buffer slice currently panics, I'm trying to figure out why that is.
The assertion was added in 2bc930d

Testing

This PR is all about testing.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

You're a saint

@cwfitzgerald
Copy link
Member

Poke - the PR body mentions this still needs more follow up?

@nical
Copy link
Contributor Author

nical commented Oct 9, 2022

Yeah IIRC wgpu right now doesn't allow me to express some of the zero sizes (due to a bunch of NonZeroU32 parameters where the WebGPU spec has regular integers). I probably need to write the test on top of wgpu-core instead

@cwfitzgerald
Copy link
Member

Cool, merging then!

@cwfitzgerald cwfitzgerald merged commit cf3ea63 into gfx-rs:master Oct 12, 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