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

Requiring integral-valued float literals to have .0 seems gratuitous #739

@litherum

Description

@litherum

It's really common for shaders to have things like float4(1, 2, 3, 4) rather than float4(1.0, 2.0, 3.0, 4.0). Given that most operations in shaders are floating point operations, it seems gratuitous to require the extra two characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issueswgsl:tokensWGSL tokenization and literals

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions