Operator

    VisualShaderNodeIntOp.swift:19
    enum Operator

    Cases

    • case add

      Sums two numbers using a + b.

    • case sub

      Subtracts two numbers using a - b.

    • case mul

      Multiplies two numbers using a * b.

    • case div

      Divides two numbers using a / b.

    • case mod

      Calculates the remainder of two numbers using a % b.

    • case max

      Returns the greater of two numbers. Translates to max(a, b) in the Godot Shader Language.

    • case min

      Returns the lesser of two numbers. Translates to max(a, b) in the Godot Shader Language.

    • case bitwiseAnd

      Returns the result of bitwise AND operation on the integer. Translates to a & b in the Godot Shader Language.

    • case bitwiseOr

      Returns the result of bitwise OR operation for two integers. Translates to a | b in the Godot Shader Language.

    • case bitwiseXor

      Returns the result of bitwise XOR operation for two integers. Translates to a ^ b in the Godot Shader Language.

    • case bitwiseLeftShift

      Returns the result of bitwise left shift operation on the integer. Translates to a << b in the Godot Shader Language.

    • case bitwiseRightShift

      Returns the result of bitwise right shift operation on the integer. Translates to a >> b in the Godot Shader Language.

    • case enumSize

      Represents the size of the Operator enum.

    Other members in extension

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features