Texture sampling issues when using a texture binding_array on Windows+AMD gpu with wgpu 0.18 #4762
Labels
area: naga back-end
Outputs of naga shader conversion
lang: SPIR-V
Vulkan's Shading Language
naga
Shader Translator
type: bug
Something isn't working
Description
Textures look borked when sampling from a
binding_array<texture_2d<f32>>
on Windows+AMD gpu+wgpu 0.18+vulkan.Repro steps
Run bevy's
texture_binding_array
(shader code) example on Windows with an AMD gpu.Expected vs observed behavior
Extra materials
The wgsl: https://gist.github.com/Elabajaba/783e298cff814526a4e9e17031a7346f
A similar bug happened on Linux+AMD (RADV) with wgpu 0.17, but is fixed with wgpu 0.18.
This bug only appeared for me on windows+amd with wgpu 0.18 + vulkan.
Platform
Windows 11, AMD 6800xt with the 23.11.1 driver.
The text was updated successfully, but these errors were encountered: