class_rdtextureformat.rst 8.0 KB

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