class_rdvertexattribute.rst 5.6 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/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:`DataFormat<enum_RenderingDevice_DataFormat>` | :ref:`format<class_RDVertexAttribute_property_format>` | ``218`` |
  22. +--------------------------------------------------------------+--------------------------------------------------------------+---------+
  23. | :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` | :ref:`frequency<class_RDVertexAttribute_property_frequency>` | ``0`` |
  24. +--------------------------------------------------------------+--------------------------------------------------------------+---------+
  25. | :ref:`int<class_int>` | :ref:`location<class_RDVertexAttribute_property_location>` | ``0`` |
  26. +--------------------------------------------------------------+--------------------------------------------------------------+---------+
  27. | :ref:`int<class_int>` | :ref:`offset<class_RDVertexAttribute_property_offset>` | ``0`` |
  28. +--------------------------------------------------------------+--------------------------------------------------------------+---------+
  29. | :ref:`int<class_int>` | :ref:`stride<class_RDVertexAttribute_property_stride>` | ``0`` |
  30. +--------------------------------------------------------------+--------------------------------------------------------------+---------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Property Descriptions
  35. ---------------------
  36. .. _class_RDVertexAttribute_property_format:
  37. .. rst-class:: classref-property
  38. :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **format** = ``218`` :ref:`🔗<class_RDVertexAttribute_property_format>`
  39. .. rst-class:: classref-property-setget
  40. - |void| **set_format**\ (\ value\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`\ )
  41. - :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **get_format**\ (\ )
  42. The way that this attribute's data is interpreted when sent to a shader.
  43. .. rst-class:: classref-item-separator
  44. ----
  45. .. _class_RDVertexAttribute_property_frequency:
  46. .. rst-class:: classref-property
  47. :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **frequency** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_frequency>`
  48. .. rst-class:: classref-property-setget
  49. - |void| **set_frequency**\ (\ value\: :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>`\ )
  50. - :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **get_frequency**\ (\ )
  51. The rate at which this attribute is pulled from its vertex buffer.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_RDVertexAttribute_property_location:
  55. .. rst-class:: classref-property
  56. :ref:`int<class_int>` **location** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_location>`
  57. .. rst-class:: classref-property-setget
  58. - |void| **set_location**\ (\ value\: :ref:`int<class_int>`\ )
  59. - :ref:`int<class_int>` **get_location**\ (\ )
  60. The location in the shader that this attribute is bound to.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_RDVertexAttribute_property_offset:
  64. .. rst-class:: classref-property
  65. :ref:`int<class_int>` **offset** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_offset>`
  66. .. rst-class:: classref-property-setget
  67. - |void| **set_offset**\ (\ value\: :ref:`int<class_int>`\ )
  68. - :ref:`int<class_int>` **get_offset**\ (\ )
  69. The number of bytes between the start of the vertex buffer and the first instance of this attribute.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_RDVertexAttribute_property_stride:
  73. .. rst-class:: classref-property
  74. :ref:`int<class_int>` **stride** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_stride>`
  75. .. rst-class:: classref-property-setget
  76. - |void| **set_stride**\ (\ value\: :ref:`int<class_int>`\ )
  77. - :ref:`int<class_int>` **get_stride**\ (\ )
  78. The number of bytes between the starts of consecutive instances of this attribute.
  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.)`