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

Missing mapping for OpFRem, and MODULO token missing #702

Description

@dneto0

There is a grammar case for MODULO:

  | multiplicative_expression MODULO unary_expression
      OpUMOd
      OpSMod
      OpFMod

First issue: The MODULO token is not defined. I presume it's %

Second: We need a mapping or builtin function for OpFRem
OpFMod and OpFRem differ only in which input operand to match sign with.

FRem: The floating-point remainder whose sign matches the sign of Operand 1.
FMod: The floating-point remainder whose sign matches the sign of Operand 2.

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 Issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions