Skip to content

[wgsl] Numeric sizes #575

@dj2

Description

@dj2

Currently WebGPU only handles 32-bit float and int types. In the future if other sizes are added, how do we want to handle determining the value type in WGSL?

Something like:

1.f16
1i8
.1f64

If so, should we add a f32 and i32 suffix now?

If you have f32 suffix can you do 1f32 and drop the .?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issueswgsl:tokensWGSL tokenization and literals

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions