Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeUIntOp

繼承: VisualShaderNode < Resource < RefCounted < Object

無符號標量整數運算子,在視覺化著色器圖中使用。

說明

對兩個不帶正負號的整數輸入 ab 套用 operator

屬性

Operator

operator

0


列舉

enum Operator: 🔗

Operator OP_ADD = 0

使用 a + b 將兩個數字相加。

Operator OP_SUB = 1

使用 a - b 將兩個數字相減。

Operator OP_MUL = 2

使用 a * b 將兩個數字相乘。

Operator OP_DIV = 3

使用 a / b 將兩個數字相除。

Operator OP_MOD = 4

使用 a % b 計算兩個數字的餘數。

Operator OP_MAX = 5

返回兩個數中的較大者。在 Godot 著色器語言中,會被翻譯為 max(a, b)

Operator OP_MIN = 6

返回兩個數字中的較小者。在 Godot 著色器語言中會被翻譯為 min(a, b)

Operator OP_BITWISE_AND = 7

返回對該整數進行按位元與 AND 運算的結果。在 Godot 著色器語言中會被翻譯為 a & b

Operator OP_BITWISE_OR = 8

返回對該整數進行按位元或 OR 運算的結果。在 Godot 著色器語言中會被翻譯為 a | b

Operator OP_BITWISE_XOR = 9

返回對該整數進行按位元異或 XOR 運算的結果。在 Godot 著色器語言中會被翻譯為 a ^ b

Operator OP_BITWISE_LEFT_SHIFT = 10

返回對該整數進行按位元左移運算的結果。在 Godot 著色器語言中會被翻譯為 a << b

Operator OP_BITWISE_RIGHT_SHIFT = 11

返回對該整數進行按位元右移運算的結果。在 Godot 著色器語言中會被翻譯為 a >> b

Operator OP_ENUM_SIZE = 12

代表 Operator 列舉的大小。


屬性說明

Operator operator = 0 🔗

An operator to be applied to the inputs.