这是indexloc提供的服务,不要输入任何密码
Skip to content

Support for gl_PrimitiveID / SV_PrimitiveID -like construct? #1786

@darzu

Description

@darzu

I would like to index into a uniform buffer per-primitive (e.g. triangle face) in the fragment shader, so I can have per-face data (e.g. color). I can't find any way to do this within the current WGSL spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions