class_rdtextureformat.rst 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the RDTextureFormat.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RDTextureFormat:
  6. RDTextureFormat
  7. ===============
  8. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  12. | :ref:`int<class_int>` | :ref:`array_layers<class_RDTextureFormat_property_array_layers>` | ``1`` |
  13. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  14. | :ref:`int<class_int>` | :ref:`depth<class_RDTextureFormat_property_depth>` | ``1`` |
  15. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  16. | :ref:`DataFormat<enum_RenderingDevice_DataFormat>` | :ref:`format<class_RDTextureFormat_property_format>` | ``8`` |
  17. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  18. | :ref:`int<class_int>` | :ref:`height<class_RDTextureFormat_property_height>` | ``1`` |
  19. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  20. | :ref:`int<class_int>` | :ref:`mipmaps<class_RDTextureFormat_property_mipmaps>` | ``1`` |
  21. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  22. | :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` | :ref:`samples<class_RDTextureFormat_property_samples>` | ``0`` |
  23. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  24. | :ref:`TextureType<enum_RenderingDevice_TextureType>` | :ref:`texture_type<class_RDTextureFormat_property_texture_type>` | ``1`` |
  25. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  26. | :ref:`int<class_int>` | :ref:`usage_bits<class_RDTextureFormat_property_usage_bits>` | ``0`` |
  27. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  28. | :ref:`int<class_int>` | :ref:`width<class_RDTextureFormat_property_width>` | ``1`` |
  29. +------------------------------------------------------------+------------------------------------------------------------------+-------+
  30. Methods
  31. -------
  32. +------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`add_shareable_format<class_RDTextureFormat_method_add_shareable_format>` **(** :ref:`DataFormat<enum_RenderingDevice_DataFormat>` format **)** |
  34. +------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`remove_shareable_format<class_RDTextureFormat_method_remove_shareable_format>` **(** :ref:`DataFormat<enum_RenderingDevice_DataFormat>` format **)** |
  36. +------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. Property Descriptions
  38. ---------------------
  39. .. _class_RDTextureFormat_property_array_layers:
  40. - :ref:`int<class_int>` **array_layers**
  41. +-----------+-------------------------+
  42. | *Default* | ``1`` |
  43. +-----------+-------------------------+
  44. | *Setter* | set_array_layers(value) |
  45. +-----------+-------------------------+
  46. | *Getter* | get_array_layers() |
  47. +-----------+-------------------------+
  48. ----
  49. .. _class_RDTextureFormat_property_depth:
  50. - :ref:`int<class_int>` **depth**
  51. +-----------+------------------+
  52. | *Default* | ``1`` |
  53. +-----------+------------------+
  54. | *Setter* | set_depth(value) |
  55. +-----------+------------------+
  56. | *Getter* | get_depth() |
  57. +-----------+------------------+
  58. ----
  59. .. _class_RDTextureFormat_property_format:
  60. - :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **format**
  61. +-----------+-------------------+
  62. | *Default* | ``8`` |
  63. +-----------+-------------------+
  64. | *Setter* | set_format(value) |
  65. +-----------+-------------------+
  66. | *Getter* | get_format() |
  67. +-----------+-------------------+
  68. ----
  69. .. _class_RDTextureFormat_property_height:
  70. - :ref:`int<class_int>` **height**
  71. +-----------+-------------------+
  72. | *Default* | ``1`` |
  73. +-----------+-------------------+
  74. | *Setter* | set_height(value) |
  75. +-----------+-------------------+
  76. | *Getter* | get_height() |
  77. +-----------+-------------------+
  78. ----
  79. .. _class_RDTextureFormat_property_mipmaps:
  80. - :ref:`int<class_int>` **mipmaps**
  81. +-----------+--------------------+
  82. | *Default* | ``1`` |
  83. +-----------+--------------------+
  84. | *Setter* | set_mipmaps(value) |
  85. +-----------+--------------------+
  86. | *Getter* | get_mipmaps() |
  87. +-----------+--------------------+
  88. ----
  89. .. _class_RDTextureFormat_property_samples:
  90. - :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **samples**
  91. +-----------+--------------------+
  92. | *Default* | ``0`` |
  93. +-----------+--------------------+
  94. | *Setter* | set_samples(value) |
  95. +-----------+--------------------+
  96. | *Getter* | get_samples() |
  97. +-----------+--------------------+
  98. ----
  99. .. _class_RDTextureFormat_property_texture_type:
  100. - :ref:`TextureType<enum_RenderingDevice_TextureType>` **texture_type**
  101. +-----------+-------------------------+
  102. | *Default* | ``1`` |
  103. +-----------+-------------------------+
  104. | *Setter* | set_texture_type(value) |
  105. +-----------+-------------------------+
  106. | *Getter* | get_texture_type() |
  107. +-----------+-------------------------+
  108. ----
  109. .. _class_RDTextureFormat_property_usage_bits:
  110. - :ref:`int<class_int>` **usage_bits**
  111. +-----------+-----------------------+
  112. | *Default* | ``0`` |
  113. +-----------+-----------------------+
  114. | *Setter* | set_usage_bits(value) |
  115. +-----------+-----------------------+
  116. | *Getter* | get_usage_bits() |
  117. +-----------+-----------------------+
  118. ----
  119. .. _class_RDTextureFormat_property_width:
  120. - :ref:`int<class_int>` **width**
  121. +-----------+------------------+
  122. | *Default* | ``1`` |
  123. +-----------+------------------+
  124. | *Setter* | set_width(value) |
  125. +-----------+------------------+
  126. | *Getter* | get_width() |
  127. +-----------+------------------+
  128. Method Descriptions
  129. -------------------
  130. .. _class_RDTextureFormat_method_add_shareable_format:
  131. - void **add_shareable_format** **(** :ref:`DataFormat<enum_RenderingDevice_DataFormat>` format **)**
  132. ----
  133. .. _class_RDTextureFormat_method_remove_shareable_format:
  134. - void **remove_shareable_format** **(** :ref:`DataFormat<enum_RenderingDevice_DataFormat>` format **)**
  135. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  136. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  137. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  138. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  139. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  140. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`