gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.81k stars 939 forks source link

texture array interpreted as cube texture array #1418

Closed m4b closed 3 years ago

m4b commented 3 years ago

Short info header: It seems that repeated growing of a texture 2d array can be reinterpreted as a cube texture array, which can cause failures on systems that don't support cube texture arrays (e.g., MTFGPUFamilyApple3). For example, repeated uploads of https://github.com/hecrj/iced/blob/e292821c3780fc5a57c835815efc7a232ce4dc32/wgpu/src/shader/image.wgsl#L8 can exhibit this behavior.

kvark commented 3 years ago

Technically, this device is non-conformant, since it doesn't support cube arrays.