class_rdpipelinemultisamplestate.rst 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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/RDPipelineMultisampleState.xml.
  6. .. _class_RDPipelineMultisampleState:
  7. RDPipelineMultisampleState
  8. ==========================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Pipeline multisample state (used by :ref:`RenderingDevice<class_RenderingDevice>`).
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **RDPipelineMultisampleState** is used to control how multisample or supersample antialiasing is being performed when rendering using :ref:`RenderingDevice<class_RenderingDevice>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  21. | :ref:`bool<class_bool>` | :ref:`enable_alpha_to_coverage<class_RDPipelineMultisampleState_property_enable_alpha_to_coverage>` | ``false`` |
  22. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  23. | :ref:`bool<class_bool>` | :ref:`enable_alpha_to_one<class_RDPipelineMultisampleState_property_enable_alpha_to_one>` | ``false`` |
  24. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  25. | :ref:`bool<class_bool>` | :ref:`enable_sample_shading<class_RDPipelineMultisampleState_property_enable_sample_shading>` | ``false`` |
  26. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  27. | :ref:`float<class_float>` | :ref:`min_sample_shading<class_RDPipelineMultisampleState_property_min_sample_shading>` | ``0.0`` |
  28. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  29. | :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` | :ref:`sample_count<class_RDPipelineMultisampleState_property_sample_count>` | ``0`` |
  30. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  31. | :ref:`Array<class_Array>`\[:ref:`int<class_int>`\] | :ref:`sample_masks<class_RDPipelineMultisampleState_property_sample_masks>` | ``[]`` |
  32. +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+-----------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Property Descriptions
  37. ---------------------
  38. .. _class_RDPipelineMultisampleState_property_enable_alpha_to_coverage:
  39. .. rst-class:: classref-property
  40. :ref:`bool<class_bool>` **enable_alpha_to_coverage** = ``false`` :ref:`🔗<class_RDPipelineMultisampleState_property_enable_alpha_to_coverage>`
  41. .. rst-class:: classref-property-setget
  42. - |void| **set_enable_alpha_to_coverage**\ (\ value\: :ref:`bool<class_bool>`\ )
  43. - :ref:`bool<class_bool>` **get_enable_alpha_to_coverage**\ (\ )
  44. If ``true``, alpha to coverage is enabled. This generates a temporary coverage value based on the alpha component of the fragment's first color output. This allows alpha transparency to make use of multisample antialiasing.
  45. .. rst-class:: classref-item-separator
  46. ----
  47. .. _class_RDPipelineMultisampleState_property_enable_alpha_to_one:
  48. .. rst-class:: classref-property
  49. :ref:`bool<class_bool>` **enable_alpha_to_one** = ``false`` :ref:`🔗<class_RDPipelineMultisampleState_property_enable_alpha_to_one>`
  50. .. rst-class:: classref-property-setget
  51. - |void| **set_enable_alpha_to_one**\ (\ value\: :ref:`bool<class_bool>`\ )
  52. - :ref:`bool<class_bool>` **get_enable_alpha_to_one**\ (\ )
  53. If ``true``, alpha is forced to either ``0.0`` or ``1.0``. This allows hardening the edges of antialiased alpha transparencies. Only relevant if :ref:`enable_alpha_to_coverage<class_RDPipelineMultisampleState_property_enable_alpha_to_coverage>` is ``true``.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _class_RDPipelineMultisampleState_property_enable_sample_shading:
  57. .. rst-class:: classref-property
  58. :ref:`bool<class_bool>` **enable_sample_shading** = ``false`` :ref:`🔗<class_RDPipelineMultisampleState_property_enable_sample_shading>`
  59. .. rst-class:: classref-property-setget
  60. - |void| **set_enable_sample_shading**\ (\ value\: :ref:`bool<class_bool>`\ )
  61. - :ref:`bool<class_bool>` **get_enable_sample_shading**\ (\ )
  62. If ``true``, enables per-sample shading which replaces MSAA by SSAA. This provides higher quality antialiasing that works with transparent (alpha scissor) edges. This has a very high performance cost. See also :ref:`min_sample_shading<class_RDPipelineMultisampleState_property_min_sample_shading>`. See the `per-sample shading Vulkan documentation <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#primsrast-sampleshading>`__ for more details.
  63. .. rst-class:: classref-item-separator
  64. ----
  65. .. _class_RDPipelineMultisampleState_property_min_sample_shading:
  66. .. rst-class:: classref-property
  67. :ref:`float<class_float>` **min_sample_shading** = ``0.0`` :ref:`🔗<class_RDPipelineMultisampleState_property_min_sample_shading>`
  68. .. rst-class:: classref-property-setget
  69. - |void| **set_min_sample_shading**\ (\ value\: :ref:`float<class_float>`\ )
  70. - :ref:`float<class_float>` **get_min_sample_shading**\ (\ )
  71. The multiplier of :ref:`sample_count<class_RDPipelineMultisampleState_property_sample_count>` that determines how many samples are performed for each fragment. Must be between ``0.0`` and ``1.0`` (inclusive). Only effective if :ref:`enable_sample_shading<class_RDPipelineMultisampleState_property_enable_sample_shading>` is ``true``. If :ref:`min_sample_shading<class_RDPipelineMultisampleState_property_min_sample_shading>` is ``1.0``, fragment invocation must only read from the coverage index sample. Tile image access must not be used if :ref:`enable_sample_shading<class_RDPipelineMultisampleState_property_enable_sample_shading>` is *not* ``1.0``.
  72. .. rst-class:: classref-item-separator
  73. ----
  74. .. _class_RDPipelineMultisampleState_property_sample_count:
  75. .. rst-class:: classref-property
  76. :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **sample_count** = ``0`` :ref:`🔗<class_RDPipelineMultisampleState_property_sample_count>`
  77. .. rst-class:: classref-property-setget
  78. - |void| **set_sample_count**\ (\ value\: :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>`\ )
  79. - :ref:`TextureSamples<enum_RenderingDevice_TextureSamples>` **get_sample_count**\ (\ )
  80. The number of MSAA samples (or SSAA samples if :ref:`enable_sample_shading<class_RDPipelineMultisampleState_property_enable_sample_shading>` is ``true``) to perform. Higher values result in better antialiasing, at the cost of performance.
  81. .. rst-class:: classref-item-separator
  82. ----
  83. .. _class_RDPipelineMultisampleState_property_sample_masks:
  84. .. rst-class:: classref-property
  85. :ref:`Array<class_Array>`\[:ref:`int<class_int>`\] **sample_masks** = ``[]`` :ref:`🔗<class_RDPipelineMultisampleState_property_sample_masks>`
  86. .. rst-class:: classref-property-setget
  87. - |void| **set_sample_masks**\ (\ value\: :ref:`Array<class_Array>`\[:ref:`int<class_int>`\]\ )
  88. - :ref:`Array<class_Array>`\[:ref:`int<class_int>`\] **get_sample_masks**\ (\ )
  89. The sample mask array. See the `sample mask Vulkan documentation <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#fragops-samplemask>`__ for more details.
  90. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  91. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  92. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  93. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  94. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  95. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  96. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  97. .. |void| replace:: :abbr:`void (No return value.)`