Add test for texture creation to check for expected & unexpected errors #2324
Labels
area: infrastructure
Testing, building, coordinating issues
type: enhancement
New feature or request
The https://github.com/gfx-rs/wgpu/blob/master/wgpu/tests/clear_texture.rs test does part of that job so and has found plenty of issues. But most importantly it does not check if the right errors are returned / that failures occur as expected.
It's fairly tricky to get full coverage of this issue, but we should at least attempt to tableize it and put into a test. If done cleverly, this can be reuused for operation tests like the ones in
clear_texture
and others, e.g. using a format for binding etc.Related #2045, #2057, #2323 (surely more)
The text was updated successfully, but these errors were encountered: