class_rdframebufferpass.rst 6.2 KB

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