gfx-rs / wgpu

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

SPIR-V parsing fails on global var access #4463

Open kvark opened 2 years ago

kvark commented 2 years ago

rafx-mesh-basic-textured-frag.spv.zip

JCapucho commented 2 years ago

Okay the problem is that you're creating a variable of a pointer of an array of cube images with size 16 and then trying to use OpAccessChain on the variable and loading the result.

Seems related to https://github.com/gfx-rs/naga/issues/751