Skip to content

WebGPU ShaderStage missing Flags attribute #2238

@joskuijpers

Description

@joskuijpers

Summary

ShaderStage is used to indicate visibility of bind groups. It is allowed to have more than 1 of these items, and their values are 2^n.

Steps to reproduce

Write:

ShaderStage.Vertex | ShaderStage.Fragment

gives warning:

Bitwise operation on enum is not marked by [Flags] attribute

Comments

I know [Flags] needs to be added, I just do not know how in the process to automate that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions