class_rduniform.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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/RDUniform.xml.
  6. .. _class_RDUniform:
  7. RDUniform
  8. =========
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Shader uniform (used by :ref:`RenderingDevice<class_RenderingDevice>`).
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This object is used by :ref:`RenderingDevice<class_RenderingDevice>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +------------------------------------------------------+------------------------------------------------------------+-------+
  21. | :ref:`int<class_int>` | :ref:`binding<class_RDUniform_property_binding>` | ``0`` |
  22. +------------------------------------------------------+------------------------------------------------------------+-------+
  23. | :ref:`UniformType<enum_RenderingDevice_UniformType>` | :ref:`uniform_type<class_RDUniform_property_uniform_type>` | ``3`` |
  24. +------------------------------------------------------+------------------------------------------------------------+-------+
  25. .. rst-class:: classref-reftable-group
  26. Methods
  27. -------
  28. .. table::
  29. :widths: auto
  30. +----------------------------------------------------+--------------------------------------------------------------------------------+
  31. | |void| | :ref:`add_id<class_RDUniform_method_add_id>`\ (\ id\: :ref:`RID<class_RID>`\ ) |
  32. +----------------------------------------------------+--------------------------------------------------------------------------------+
  33. | |void| | :ref:`clear_ids<class_RDUniform_method_clear_ids>`\ (\ ) |
  34. +----------------------------------------------------+--------------------------------------------------------------------------------+
  35. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`get_ids<class_RDUniform_method_get_ids>`\ (\ ) |const| |
  36. +----------------------------------------------------+--------------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Property Descriptions
  41. ---------------------
  42. .. _class_RDUniform_property_binding:
  43. .. rst-class:: classref-property
  44. :ref:`int<class_int>` **binding** = ``0`` :ref:`🔗<class_RDUniform_property_binding>`
  45. .. rst-class:: classref-property-setget
  46. - |void| **set_binding**\ (\ value\: :ref:`int<class_int>`\ )
  47. - :ref:`int<class_int>` **get_binding**\ (\ )
  48. The uniform's binding.
  49. .. rst-class:: classref-item-separator
  50. ----
  51. .. _class_RDUniform_property_uniform_type:
  52. .. rst-class:: classref-property
  53. :ref:`UniformType<enum_RenderingDevice_UniformType>` **uniform_type** = ``3`` :ref:`🔗<class_RDUniform_property_uniform_type>`
  54. .. rst-class:: classref-property-setget
  55. - |void| **set_uniform_type**\ (\ value\: :ref:`UniformType<enum_RenderingDevice_UniformType>`\ )
  56. - :ref:`UniformType<enum_RenderingDevice_UniformType>` **get_uniform_type**\ (\ )
  57. The uniform's data type.
  58. .. rst-class:: classref-section-separator
  59. ----
  60. .. rst-class:: classref-descriptions-group
  61. Method Descriptions
  62. -------------------
  63. .. _class_RDUniform_method_add_id:
  64. .. rst-class:: classref-method
  65. |void| **add_id**\ (\ id\: :ref:`RID<class_RID>`\ ) :ref:`🔗<class_RDUniform_method_add_id>`
  66. Binds the given id to the uniform. The data associated with the id is then used when the uniform is passed to a shader.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_RDUniform_method_clear_ids:
  70. .. rst-class:: classref-method
  71. |void| **clear_ids**\ (\ ) :ref:`🔗<class_RDUniform_method_clear_ids>`
  72. Unbinds all ids currently bound to the uniform.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_RDUniform_method_get_ids:
  76. .. rst-class:: classref-method
  77. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **get_ids**\ (\ ) |const| :ref:`🔗<class_RDUniform_method_get_ids>`
  78. Returns an array of all ids currently bound to the uniform.
  79. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  80. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  81. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  82. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  83. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  84. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  85. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  86. .. |void| replace:: :abbr:`void (No return value.)`