Sitelet https://github.com/gpuweb/gpuweb/issues/739
Skip to content

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

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.

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

    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