Skip to content

"workgroup_size" builtin is not supported on some Apple platforms #1590

@kvark

Description

@kvark

The builtin translates to dispatch_threads_per_threadgroup, which is available on "All OS: Since Metal 1.0" according to the Metal language spec. However, actually using it gives me the following error:

:12:19: error: 'dispatch_threads_per_threadgroup' attribute requires Metal language standard macos-metal2.0 or higher
, type2 wg_size [[dispatch_threads_per_threadgroup]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions