Skip to content

WebGPU ShaderStage missing Flags attribute #2238

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions