Skip to content

"Instructions after return" is reported incorrectly #7536

@andyleiserson

Description

@andyleiserson

This failure appears in https://shi-yan.github.io/webgpuunleashed/code/code.html#5_04_mega_texture, via https://bugzilla.mozilla.org/show_bug.cgi?id=1911496.

The shader fails with:

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`

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions