class_rdattachmentformat.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/RDAttachmentFormat.xml.
  6. .. _class_RDAttachmentFormat:
  7. RDAttachmentFormat
  8. ==================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Attachment format (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_RDAttachmentFormat_property_format>` | ``36`` |
  22. +------------------------------------------------------------+-------------------------------------------------------------------+--------+
  23. | :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` | :ref:`samples<class_RDAttachmentFormat_property_samples>` | ``0`` |
  24. +------------------------------------------------------------+-------------------------------------------------------------------+--------+
  25. | :ref:`int<class_int>` | :ref:`usage_flags<class_RDAttachmentFormat_property_usage_flags>` | ``0`` |
  26. +------------------------------------------------------------+-------------------------------------------------------------------+--------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Property Descriptions
  31. ---------------------
  32. .. _class_RDAttachmentFormat_property_format:
  33. .. rst-class:: classref-property
  34. :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **format** = ``36``
  35. .. rst-class:: classref-property-setget
  36. - void **set_format** **(** :ref:`DataFormat<enum_RenderingDevice_DataFormat>` value **)**
  37. - :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **get_format** **(** **)**
  38. The attachment's data format.
  39. .. rst-class:: classref-item-separator
  40. ----
  41. .. _class_RDAttachmentFormat_property_samples:
  42. .. rst-class:: classref-property
  43. :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **samples** = ``0``
  44. .. rst-class:: classref-property-setget
  45. - void **set_samples** **(** :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` value **)**
  46. - :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **get_samples** **(** **)**
  47. The number of samples used when sampling the attachment.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_RDAttachmentFormat_property_usage_flags:
  51. .. rst-class:: classref-property
  52. :ref:`int<class_int>` **usage_flags** = ``0``
  53. .. rst-class:: classref-property-setget
  54. - void **set_usage_flags** **(** :ref:`int<class_int>` value **)**
  55. - :ref:`int<class_int>` **get_usage_flags** **(** **)**
  56. The attachment's usage flags, which determine what can be done with it.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  63. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`