class_rdpipelinerasterizationstate.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/RDPipelineRasterizationState.xml.
  6. .. _class_RDPipelineRasterizationState:
  7. RDPipelineRasterizationState
  8. ============================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Pipeline rasterization state (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:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` | :ref:`cull_mode<class_RDPipelineRasterizationState_property_cull_mode>` | ``0`` |
  22. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  23. | :ref:`float<class_float>` | :ref:`depth_bias_clamp<class_RDPipelineRasterizationState_property_depth_bias_clamp>` | ``0.0`` |
  24. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  25. | :ref:`float<class_float>` | :ref:`depth_bias_constant_factor<class_RDPipelineRasterizationState_property_depth_bias_constant_factor>` | ``0.0`` |
  26. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  27. | :ref:`bool<class_bool>` | :ref:`depth_bias_enabled<class_RDPipelineRasterizationState_property_depth_bias_enabled>` | ``false`` |
  28. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  29. | :ref:`float<class_float>` | :ref:`depth_bias_slope_factor<class_RDPipelineRasterizationState_property_depth_bias_slope_factor>` | ``0.0`` |
  30. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  31. | :ref:`bool<class_bool>` | :ref:`discard_primitives<class_RDPipelineRasterizationState_property_discard_primitives>` | ``false`` |
  32. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  33. | :ref:`bool<class_bool>` | :ref:`enable_depth_clamp<class_RDPipelineRasterizationState_property_enable_depth_clamp>` | ``false`` |
  34. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  35. | :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` | :ref:`front_face<class_RDPipelineRasterizationState_property_front_face>` | ``0`` |
  36. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  37. | :ref:`float<class_float>` | :ref:`line_width<class_RDPipelineRasterizationState_property_line_width>` | ``1.0`` |
  38. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  39. | :ref:`int<class_int>` | :ref:`patch_control_points<class_RDPipelineRasterizationState_property_patch_control_points>` | ``1`` |
  40. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  41. | :ref:`bool<class_bool>` | :ref:`wireframe<class_RDPipelineRasterizationState_property_wireframe>` | ``false`` |
  42. +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
  43. .. rst-class:: classref-section-separator
  44. ----
  45. .. rst-class:: classref-descriptions-group
  46. Property Descriptions
  47. ---------------------
  48. .. _class_RDPipelineRasterizationState_property_cull_mode:
  49. .. rst-class:: classref-property
  50. :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **cull_mode** = ``0``
  51. .. rst-class:: classref-property-setget
  52. - void **set_cull_mode** **(** :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` value **)**
  53. - :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **get_cull_mode** **(** **)**
  54. The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_RDPipelineRasterizationState_property_depth_bias_clamp:
  58. .. rst-class:: classref-property
  59. :ref:`float<class_float>` **depth_bias_clamp** = ``0.0``
  60. .. rst-class:: classref-property-setget
  61. - void **set_depth_bias_clamp** **(** :ref:`float<class_float>` value **)**
  62. - :ref:`float<class_float>` **get_depth_bias_clamp** **(** **)**
  63. .. container:: contribute
  64. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_RDPipelineRasterizationState_property_depth_bias_constant_factor:
  68. .. rst-class:: classref-property
  69. :ref:`float<class_float>` **depth_bias_constant_factor** = ``0.0``
  70. .. rst-class:: classref-property-setget
  71. - void **set_depth_bias_constant_factor** **(** :ref:`float<class_float>` value **)**
  72. - :ref:`float<class_float>` **get_depth_bias_constant_factor** **(** **)**
  73. .. container:: contribute
  74. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_RDPipelineRasterizationState_property_depth_bias_enabled:
  78. .. rst-class:: classref-property
  79. :ref:`bool<class_bool>` **depth_bias_enabled** = ``false``
  80. .. rst-class:: classref-property-setget
  81. - void **set_depth_bias_enabled** **(** :ref:`bool<class_bool>` value **)**
  82. - :ref:`bool<class_bool>` **get_depth_bias_enabled** **(** **)**
  83. .. container:: contribute
  84. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_RDPipelineRasterizationState_property_depth_bias_slope_factor:
  88. .. rst-class:: classref-property
  89. :ref:`float<class_float>` **depth_bias_slope_factor** = ``0.0``
  90. .. rst-class:: classref-property-setget
  91. - void **set_depth_bias_slope_factor** **(** :ref:`float<class_float>` value **)**
  92. - :ref:`float<class_float>` **get_depth_bias_slope_factor** **(** **)**
  93. .. container:: contribute
  94. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  95. .. rst-class:: classref-item-separator
  96. ----
  97. .. _class_RDPipelineRasterizationState_property_discard_primitives:
  98. .. rst-class:: classref-property
  99. :ref:`bool<class_bool>` **discard_primitives** = ``false``
  100. .. rst-class:: classref-property-setget
  101. - void **set_discard_primitives** **(** :ref:`bool<class_bool>` value **)**
  102. - :ref:`bool<class_bool>` **get_discard_primitives** **(** **)**
  103. If ``true``, primitives are discarded immediately before the rasterization stage.
  104. .. rst-class:: classref-item-separator
  105. ----
  106. .. _class_RDPipelineRasterizationState_property_enable_depth_clamp:
  107. .. rst-class:: classref-property
  108. :ref:`bool<class_bool>` **enable_depth_clamp** = ``false``
  109. .. rst-class:: classref-property-setget
  110. - void **set_enable_depth_clamp** **(** :ref:`bool<class_bool>` value **)**
  111. - :ref:`bool<class_bool>` **get_enable_depth_clamp** **(** **)**
  112. .. container:: contribute
  113. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_RDPipelineRasterizationState_property_front_face:
  117. .. rst-class:: classref-property
  118. :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` **front_face** = ``0``
  119. .. rst-class:: classref-property-setget
  120. - void **set_front_face** **(** :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` value **)**
  121. - :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` **get_front_face** **(** **)**
  122. The winding order to use to determine which face of a triangle is considered its front face.
  123. .. rst-class:: classref-item-separator
  124. ----
  125. .. _class_RDPipelineRasterizationState_property_line_width:
  126. .. rst-class:: classref-property
  127. :ref:`float<class_float>` **line_width** = ``1.0``
  128. .. rst-class:: classref-property-setget
  129. - void **set_line_width** **(** :ref:`float<class_float>` value **)**
  130. - :ref:`float<class_float>` **get_line_width** **(** **)**
  131. THe line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_RDPipelineRasterizationState_property_patch_control_points:
  135. .. rst-class:: classref-property
  136. :ref:`int<class_int>` **patch_control_points** = ``1``
  137. .. rst-class:: classref-property-setget
  138. - void **set_patch_control_points** **(** :ref:`int<class_int>` value **)**
  139. - :ref:`int<class_int>` **get_patch_control_points** **(** **)**
  140. The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.
  141. .. rst-class:: classref-item-separator
  142. ----
  143. .. _class_RDPipelineRasterizationState_property_wireframe:
  144. .. rst-class:: classref-property
  145. :ref:`bool<class_bool>` **wireframe** = ``false``
  146. .. rst-class:: classref-property-setget
  147. - void **set_wireframe** **(** :ref:`bool<class_bool>` value **)**
  148. - :ref:`bool<class_bool>` **get_wireframe** **(** **)**
  149. If ``true``, performs wireframe rendering for triangles instead of flat or textured rendering.
  150. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  151. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  152. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  153. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  154. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  155. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`