Internal error in writing type when atomicCompareExchangeWeak is used in compute shader, on GL backend #7578
Labels
area: naga back-end
Outputs of naga shader conversion
backend: gles
Issues with GLES or WebGL
lang: GLSL
OpenGL Shading Language
naga
Shader Translator
type: bug
Something isn't working
Description
When
atomicCompareExchangeWeak
is called in compute shader, on a GL backend,wgpu
will report internal error:Repro steps
I'm reusing a repo I created for exploring other things: https://github.com/suguruwataru/wgsl-loop
The branch
atomic-compare-exchange-weak
contains a test that just runs a compute shader callingatomicCompareExchangeWeak
:https://github.com/suguruwataru/wgsl-loop/tree/atomic-compare-exchange-weak
cargo test
to run it, and you should see the internal error being reported.Expected vs observed behavior
Expectation is
atomicCompareExchangeWeak
won't cause an internal error and be successfully translated.Platform
I was running it on Linux without Vulkan driver. I have tried
wgpu 23.0.1
andwgpu 25.0.0
.The text was updated successfully, but these errors were encountered: