class_rdframebufferpass.rst 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 RDFramebufferPass.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RDFramebufferPass:
  6. RDFramebufferPass
  7. =================
  8. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Framebuffer pass attachment description.
  10. Description
  11. -----------
  12. This class contains the list of attachment descriptions for a framebuffer pass. Each points with an index to a previously supplied list of texture attachments.
  13. Multipass framebuffers can optimize some configurations in mobile, on desktop they provide little to no advantage.
  14. Properties
  15. ----------
  16. +-------------------------------------------------+------------------------------------------------------------------------------------+------------------------+
  17. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`color_attachments<class_RDFramebufferPass_property_color_attachments>` | ``PackedInt32Array()`` |
  18. +-------------------------------------------------+------------------------------------------------------------------------------------+------------------------+
  19. | :ref:`int<class_int>` | :ref:`depth_attachment<class_RDFramebufferPass_property_depth_attachment>` | ``-1`` |
  20. +-------------------------------------------------+------------------------------------------------------------------------------------+------------------------+
  21. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`input_attachments<class_RDFramebufferPass_property_input_attachments>` | ``PackedInt32Array()`` |
  22. +-------------------------------------------------+------------------------------------------------------------------------------------+------------------------+
  23. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`preserve_attachments<class_RDFramebufferPass_property_preserve_attachments>` | ``PackedInt32Array()`` |
  24. +-------------------------------------------------+------------------------------------------------------------------------------------+------------------------+
  25. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`resolve_attachments<class_RDFramebufferPass_property_resolve_attachments>` | ``PackedInt32Array()`` |
  26. +-------------------------------------------------+------------------------------------------------------------------------------------+------------------------+
  27. Constants
  28. ---------
  29. .. _class_RDFramebufferPass_constant_ATTACHMENT_UNUSED:
  30. - **ATTACHMENT_UNUSED** = **-1**
  31. Property Descriptions
  32. ---------------------
  33. .. _class_RDFramebufferPass_property_color_attachments:
  34. - :ref:`PackedInt32Array<class_PackedInt32Array>` **color_attachments**
  35. +-----------+------------------------------+
  36. | *Default* | ``PackedInt32Array()`` |
  37. +-----------+------------------------------+
  38. | *Setter* | set_color_attachments(value) |
  39. +-----------+------------------------------+
  40. | *Getter* | get_color_attachments() |
  41. +-----------+------------------------------+
  42. Color attachments in order starting from 0. If this attachment is not used by the shader, pass ATTACHMENT_UNUSED to skip.
  43. ----
  44. .. _class_RDFramebufferPass_property_depth_attachment:
  45. - :ref:`int<class_int>` **depth_attachment**
  46. +-----------+-----------------------------+
  47. | *Default* | ``-1`` |
  48. +-----------+-----------------------------+
  49. | *Setter* | set_depth_attachment(value) |
  50. +-----------+-----------------------------+
  51. | *Getter* | get_depth_attachment() |
  52. +-----------+-----------------------------+
  53. Depth attachment. ATTACHMENT_UNUSED should be used if no depth buffer is required for this pass.
  54. ----
  55. .. _class_RDFramebufferPass_property_input_attachments:
  56. - :ref:`PackedInt32Array<class_PackedInt32Array>` **input_attachments**
  57. +-----------+------------------------------+
  58. | *Default* | ``PackedInt32Array()`` |
  59. +-----------+------------------------------+
  60. | *Setter* | set_input_attachments(value) |
  61. +-----------+------------------------------+
  62. | *Getter* | get_input_attachments() |
  63. +-----------+------------------------------+
  64. Used for multipass framebuffers (more than one render pass). Converts an attachment to an input. Make sure to also supply it properly in the :ref:`RDUniform<class_RDUniform>` for the uniform set.
  65. ----
  66. .. _class_RDFramebufferPass_property_preserve_attachments:
  67. - :ref:`PackedInt32Array<class_PackedInt32Array>` **preserve_attachments**
  68. +-----------+---------------------------------+
  69. | *Default* | ``PackedInt32Array()`` |
  70. +-----------+---------------------------------+
  71. | *Setter* | set_preserve_attachments(value) |
  72. +-----------+---------------------------------+
  73. | *Getter* | get_preserve_attachments() |
  74. +-----------+---------------------------------+
  75. Attachments to preserve in this pass (otherwise they are erased).
  76. ----
  77. .. _class_RDFramebufferPass_property_resolve_attachments:
  78. - :ref:`PackedInt32Array<class_PackedInt32Array>` **resolve_attachments**
  79. +-----------+--------------------------------+
  80. | *Default* | ``PackedInt32Array()`` |
  81. +-----------+--------------------------------+
  82. | *Setter* | set_resolve_attachments(value) |
  83. +-----------+--------------------------------+
  84. | *Getter* | get_resolve_attachments() |
  85. +-----------+--------------------------------+
  86. If the color attachments are multisampled, non-multisampled resolve attachments can be provided.
  87. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  88. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  89. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  90. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  91. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  92. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`