Open Bug 1960406 Opened 14 days ago Updated 14 days ago

WGSL: "Instructions after return" is reported incorrectly

Categories

(Core :: Graphics: WebGPU, defect, P3)

defect

Tracking

()

People

(Reporter: aleiserson, Unassigned)

References

(Blocks 1 open bug, )

Details

This failure appears in https://shi-yan.github.io/webgpuunleashed/code/code.html#5_04_mega_texture:

Shader validation error: Entry point fs_main at Fragment is invalid
   ┌─ :54:12
   │
54 │     return vec4(1.0,0.0,0.0,1.0);
   │            ^^^^^^^^^^^^^^^^^^^^^ instructions after return
   │
   = There are instructions after `return`/`break`/`continue`

Also filed wgpu#7536.

Blocks: webgpu-unleashed
No longer blocks: 1911496
You need to log in before you can comment on or make changes to this bug.