class_rdvertexattribute.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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/RDVertexAttribute.xml.
  6. .. _class_RDVertexAttribute:
  7. RDVertexAttribute
  8. =================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Vertex attribute (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_RDVertexAttribute_property_binding>` | ``4294967295`` |
  22. +--------------------------------------------------------------+--------------------------------------------------------------+----------------+
  23. | :ref:`DataFormat<enum_RenderingDevice_DataFormat>` | :ref:`format<class_RDVertexAttribute_property_format>` | ``232`` |
  24. +--------------------------------------------------------------+--------------------------------------------------------------+----------------+
  25. | :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` | :ref:`frequency<class_RDVertexAttribute_property_frequency>` | ``0`` |
  26. +--------------------------------------------------------------+--------------------------------------------------------------+----------------+
  27. | :ref:`int<class_int>` | :ref:`location<class_RDVertexAttribute_property_location>` | ``0`` |
  28. +--------------------------------------------------------------+--------------------------------------------------------------+----------------+
  29. | :ref:`int<class_int>` | :ref:`offset<class_RDVertexAttribute_property_offset>` | ``0`` |
  30. +--------------------------------------------------------------+--------------------------------------------------------------+----------------+
  31. | :ref:`int<class_int>` | :ref:`stride<class_RDVertexAttribute_property_stride>` | ``0`` |
  32. +--------------------------------------------------------------+--------------------------------------------------------------+----------------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Property Descriptions
  37. ---------------------
  38. .. _class_RDVertexAttribute_property_binding:
  39. .. rst-class:: classref-property
  40. :ref:`int<class_int>` **binding** = ``4294967295`` :ref:`🔗<class_RDVertexAttribute_property_binding>`
  41. .. rst-class:: classref-property-setget
  42. - |void| **set_binding**\ (\ value\: :ref:`int<class_int>`\ )
  43. - :ref:`int<class_int>` **get_binding**\ (\ )
  44. The index of the buffer in the vertex buffer array to bind this vertex attribute. When set to ``-1``, it defaults to the index of the attribute.
  45. \ **Note:** You cannot mix binding explicitly assigned attributes with implicitly assigned ones (i.e. ``-1``). Either all attributes must have their binding set to ``-1``, or all must have explicit bindings.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_RDVertexAttribute_property_format:
  49. .. rst-class:: classref-property
  50. :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **format** = ``232`` :ref:`🔗<class_RDVertexAttribute_property_format>`
  51. .. rst-class:: classref-property-setget
  52. - |void| **set_format**\ (\ value\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`\ )
  53. - :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **get_format**\ (\ )
  54. The way that this attribute's data is interpreted when sent to a shader.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_RDVertexAttribute_property_frequency:
  58. .. rst-class:: classref-property
  59. :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **frequency** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_frequency>`
  60. .. rst-class:: classref-property-setget
  61. - |void| **set_frequency**\ (\ value\: :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>`\ )
  62. - :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **get_frequency**\ (\ )
  63. The rate at which this attribute is pulled from its vertex buffer.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_RDVertexAttribute_property_location:
  67. .. rst-class:: classref-property
  68. :ref:`int<class_int>` **location** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_location>`
  69. .. rst-class:: classref-property-setget
  70. - |void| **set_location**\ (\ value\: :ref:`int<class_int>`\ )
  71. - :ref:`int<class_int>` **get_location**\ (\ )
  72. The location in the shader that this attribute is bound to.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_RDVertexAttribute_property_offset:
  76. .. rst-class:: classref-property
  77. :ref:`int<class_int>` **offset** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_offset>`
  78. .. rst-class:: classref-property-setget
  79. - |void| **set_offset**\ (\ value\: :ref:`int<class_int>`\ )
  80. - :ref:`int<class_int>` **get_offset**\ (\ )
  81. The number of bytes between the start of the vertex buffer and the first instance of this attribute.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_RDVertexAttribute_property_stride:
  85. .. rst-class:: classref-property
  86. :ref:`int<class_int>` **stride** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_stride>`
  87. .. rst-class:: classref-property-setget
  88. - |void| **set_stride**\ (\ value\: :ref:`int<class_int>`\ )
  89. - :ref:`int<class_int>` **get_stride**\ (\ )
  90. The number of bytes between the starts of consecutive instances of this attribute.
  91. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  92. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  93. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  94. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  95. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  96. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  97. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  98. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  99. .. |void| replace:: :abbr:`void (No return value.)`