Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
Operator
VisualShaderNodeUIntOp.swift:19enum 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 toa & b
in the Godot Shader Language.case bitwiseOr
Returns the result of bitwise
OR
operation for two integers. Translates toa | b
in the Godot Shader Language.case bitwiseXor
Returns the result of bitwise
XOR
operation for two integers. Translates toa ^ 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
var `operator`: VisualShaderNodeUIntOp.Operator
An operator to be applied to the inputs. See
Operator
for options.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.