mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
185 lines
6.3 KiB
ReStructuredText
185 lines
6.3 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. DO NOT EDIT THIS FILE!!!
|
|
.. Generated automatically from Godot engine sources.
|
|
.. Generator: https://github.com/godotengine/godot/tree/4.4/doc/tools/make_rst.py.
|
|
.. XML source: https://github.com/godotengine/godot/tree/4.4/doc/classes/VisualShaderNodeUIntOp.xml.
|
|
|
|
.. _class_VisualShaderNodeUIntOp:
|
|
|
|
VisualShaderNodeUIntOp
|
|
======================
|
|
|
|
**继承:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
|
|
|
无符号标量整数运算符,在可视化着色器图中使用。
|
|
|
|
.. rst-class:: classref-introduction-group
|
|
|
|
描述
|
|
----
|
|
|
|
对两个无符号整数输入 ``a`` 和 ``b`` 应用 :ref:`operator<class_VisualShaderNodeUIntOp_property_operator>`\ 。
|
|
|
|
.. rst-class:: classref-reftable-group
|
|
|
|
属性
|
|
----
|
|
|
|
.. table::
|
|
:widths: auto
|
|
|
|
+-------------------------------------------------------+-----------------------------------------------------------------+-------+
|
|
| :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` | :ref:`operator<class_VisualShaderNodeUIntOp_property_operator>` | ``0`` |
|
|
+-------------------------------------------------------+-----------------------------------------------------------------+-------+
|
|
|
|
.. rst-class:: classref-section-separator
|
|
|
|
----
|
|
|
|
.. rst-class:: classref-descriptions-group
|
|
|
|
枚举
|
|
----
|
|
|
|
.. _enum_VisualShaderNodeUIntOp_Operator:
|
|
|
|
.. rst-class:: classref-enumeration
|
|
|
|
enum **Operator**: :ref:`🔗<enum_VisualShaderNodeUIntOp_Operator>`
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_ADD:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_ADD** = ``0``
|
|
|
|
使用 ``a + b`` 将两个数字相加。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_SUB:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_SUB** = ``1``
|
|
|
|
使用 ``a - b`` 将两个数字相减。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_MUL:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MUL** = ``2``
|
|
|
|
使用 ``a * b`` 将两个数字相乘。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_DIV:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_DIV** = ``3``
|
|
|
|
使用 ``a / b`` 将两个数字相除。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_MOD:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MOD** = ``4``
|
|
|
|
使用 ``a % b`` 计算两个数字的余数。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_MAX:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MAX** = ``5``
|
|
|
|
返回两个数中的较大者。在 Godot 着色器语言中,会被翻译为 ``max(a, b)``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_MIN:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MIN** = ``6``
|
|
|
|
返回两个数字中的较小者。在 Godot 着色器语言中会被翻译为 ``min(a, b)``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_AND:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_AND** = ``7``
|
|
|
|
返回对该整数进行按位与 ``AND`` 运算的结果。在 Godot 着色器语言中会被翻译为 ``a & b``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_OR:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_OR** = ``8``
|
|
|
|
返回对该整数进行按位或 ``OR`` 运算的结果。在 Godot 着色器语言中会被翻译为 ``a | b``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_XOR:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_XOR** = ``9``
|
|
|
|
返回对该整数进行按位异或 ``XOR`` 运算的结果。在 Godot 着色器语言中会被翻译为 ``a ^ b``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_LEFT_SHIFT:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_LEFT_SHIFT** = ``10``
|
|
|
|
返回对该整数进行按位左移运算的结果。在 Godot 着色器语言中会被翻译为 ``a << b``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_RIGHT_SHIFT:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_RIGHT_SHIFT** = ``11``
|
|
|
|
返回对该整数进行按位右移运算的结果。在 Godot 着色器语言中会被翻译为 ``a >> b``\ 。
|
|
|
|
.. _class_VisualShaderNodeUIntOp_constant_OP_ENUM_SIZE:
|
|
|
|
.. rst-class:: classref-enumeration-constant
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_ENUM_SIZE** = ``12``
|
|
|
|
代表 :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` 枚举的大小。
|
|
|
|
.. rst-class:: classref-section-separator
|
|
|
|
----
|
|
|
|
.. rst-class:: classref-descriptions-group
|
|
|
|
属性说明
|
|
--------
|
|
|
|
.. _class_VisualShaderNodeUIntOp_property_operator:
|
|
|
|
.. rst-class:: classref-property
|
|
|
|
:ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **operator** = ``0`` :ref:`🔗<class_VisualShaderNodeUIntOp_property_operator>`
|
|
|
|
.. rst-class:: classref-property-setget
|
|
|
|
- |void| **set_operator**\ (\ value\: :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>`\ )
|
|
- :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **get_operator**\ (\ )
|
|
|
|
要应用于输入的运算符。参阅 :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` 的选项。
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
|
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
|
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
|
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
|
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
|
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
|
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
|
.. |void| replace:: :abbr:`void (无返回值。)`
|