Skip to content

Missing "subgroups" extension declare in wgsl output if using subgroup #8180

@mikialex

Description

@mikialex

Description

According to https://www.w3.org/TR/WGSL/#enable-extensions-sec, using the subgroup feature in WGSL requires the "subgroups" extension to be enabled(declaration), but we are missing it. This breaks the subgroup feature in Chrome.

Repro steps

Use any subgroup feature and open it in Chrome.

Expected vs observed behavior

No errors no warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: naga back-endOutputs of naga shader conversionlang: WGSLWebGPU Shading Languagetype: bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions