class_visualshadernodeuintop.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeUIntOp.xml.
  6. .. _class_VisualShaderNodeUIntOp:
  7. VisualShaderNodeUIntOp
  8. ======================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. An unsigned integer scalar operator to be used within the visual shader graph.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Applies :ref:`operator<class_VisualShaderNodeUIntOp_property_operator>` to two unsigned integer inputs: ``a`` and ``b``.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------------------------+-----------------------------------------------------------------+-------+
  21. | :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` | :ref:`operator<class_VisualShaderNodeUIntOp_property_operator>` | ``0`` |
  22. +-------------------------------------------------------+-----------------------------------------------------------------+-------+
  23. .. rst-class:: classref-section-separator
  24. ----
  25. .. rst-class:: classref-descriptions-group
  26. Enumerations
  27. ------------
  28. .. _enum_VisualShaderNodeUIntOp_Operator:
  29. .. rst-class:: classref-enumeration
  30. enum **Operator**: :ref:`🔗<enum_VisualShaderNodeUIntOp_Operator>`
  31. .. _class_VisualShaderNodeUIntOp_constant_OP_ADD:
  32. .. rst-class:: classref-enumeration-constant
  33. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_ADD** = ``0``
  34. Sums two numbers using ``a + b``.
  35. .. _class_VisualShaderNodeUIntOp_constant_OP_SUB:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_SUB** = ``1``
  38. Subtracts two numbers using ``a - b``.
  39. .. _class_VisualShaderNodeUIntOp_constant_OP_MUL:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MUL** = ``2``
  42. Multiplies two numbers using ``a * b``.
  43. .. _class_VisualShaderNodeUIntOp_constant_OP_DIV:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_DIV** = ``3``
  46. Divides two numbers using ``a / b``.
  47. .. _class_VisualShaderNodeUIntOp_constant_OP_MOD:
  48. .. rst-class:: classref-enumeration-constant
  49. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MOD** = ``4``
  50. Calculates the remainder of two numbers using ``a % b``.
  51. .. _class_VisualShaderNodeUIntOp_constant_OP_MAX:
  52. .. rst-class:: classref-enumeration-constant
  53. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MAX** = ``5``
  54. Returns the greater of two numbers. Translates to ``max(a, b)`` in the Godot Shader Language.
  55. .. _class_VisualShaderNodeUIntOp_constant_OP_MIN:
  56. .. rst-class:: classref-enumeration-constant
  57. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_MIN** = ``6``
  58. Returns the lesser of two numbers. Translates to ``max(a, b)`` in the Godot Shader Language.
  59. .. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_AND:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_AND** = ``7``
  62. Returns the result of bitwise ``AND`` operation on the integer. Translates to ``a & b`` in the Godot Shader Language.
  63. .. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_OR:
  64. .. rst-class:: classref-enumeration-constant
  65. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_OR** = ``8``
  66. Returns the result of bitwise ``OR`` operation for two integers. Translates to ``a | b`` in the Godot Shader Language.
  67. .. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_XOR:
  68. .. rst-class:: classref-enumeration-constant
  69. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_XOR** = ``9``
  70. Returns the result of bitwise ``XOR`` operation for two integers. Translates to ``a ^ b`` in the Godot Shader Language.
  71. .. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_LEFT_SHIFT:
  72. .. rst-class:: classref-enumeration-constant
  73. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_LEFT_SHIFT** = ``10``
  74. Returns the result of bitwise left shift operation on the integer. Translates to ``a << b`` in the Godot Shader Language.
  75. .. _class_VisualShaderNodeUIntOp_constant_OP_BITWISE_RIGHT_SHIFT:
  76. .. rst-class:: classref-enumeration-constant
  77. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_BITWISE_RIGHT_SHIFT** = ``11``
  78. Returns the result of bitwise right shift operation on the integer. Translates to ``a >> b`` in the Godot Shader Language.
  79. .. _class_VisualShaderNodeUIntOp_constant_OP_ENUM_SIZE:
  80. .. rst-class:: classref-enumeration-constant
  81. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **OP_ENUM_SIZE** = ``12``
  82. Represents the size of the :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` enum.
  83. .. rst-class:: classref-section-separator
  84. ----
  85. .. rst-class:: classref-descriptions-group
  86. Property Descriptions
  87. ---------------------
  88. .. _class_VisualShaderNodeUIntOp_property_operator:
  89. .. rst-class:: classref-property
  90. :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **operator** = ``0`` :ref:`🔗<class_VisualShaderNodeUIntOp_property_operator>`
  91. .. rst-class:: classref-property-setget
  92. - |void| **set_operator**\ (\ value\: :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>`\ )
  93. - :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` **get_operator**\ (\ )
  94. An operator to be applied to the inputs. See :ref:`Operator<enum_VisualShaderNodeUIntOp_Operator>` for options.
  95. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  96. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  97. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  98. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  99. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  100. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  101. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  102. .. |void| replace:: :abbr:`void (No return value.)`