class_rdpipelinedepthstencilstate.rst 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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 RDPipelineDepthStencilState.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RDPipelineDepthStencilState:
  6. RDPipelineDepthStencilState
  7. ===========================
  8. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  12. | :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` | :ref:`back_op_compare<class_RDPipelineDepthStencilState_property_back_op_compare>` | ``7`` |
  13. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  14. | :ref:`int<class_int>` | :ref:`back_op_compare_mask<class_RDPipelineDepthStencilState_property_back_op_compare_mask>` | ``0`` |
  15. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  16. | :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` | :ref:`back_op_depth_fail<class_RDPipelineDepthStencilState_property_back_op_depth_fail>` | ``1`` |
  17. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  18. | :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` | :ref:`back_op_fail<class_RDPipelineDepthStencilState_property_back_op_fail>` | ``1`` |
  19. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  20. | :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` | :ref:`back_op_pass<class_RDPipelineDepthStencilState_property_back_op_pass>` | ``1`` |
  21. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  22. | :ref:`int<class_int>` | :ref:`back_op_reference<class_RDPipelineDepthStencilState_property_back_op_reference>` | ``0`` |
  23. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  24. | :ref:`int<class_int>` | :ref:`back_op_write_mask<class_RDPipelineDepthStencilState_property_back_op_write_mask>` | ``0`` |
  25. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  26. | :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` | :ref:`depth_compare_operator<class_RDPipelineDepthStencilState_property_depth_compare_operator>` | ``7`` |
  27. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  28. | :ref:`float<class_float>` | :ref:`depth_range_max<class_RDPipelineDepthStencilState_property_depth_range_max>` | ``0.0`` |
  29. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  30. | :ref:`float<class_float>` | :ref:`depth_range_min<class_RDPipelineDepthStencilState_property_depth_range_min>` | ``0.0`` |
  31. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  32. | :ref:`bool<class_bool>` | :ref:`enable_depth_range<class_RDPipelineDepthStencilState_property_enable_depth_range>` | ``false`` |
  33. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  34. | :ref:`bool<class_bool>` | :ref:`enable_depth_test<class_RDPipelineDepthStencilState_property_enable_depth_test>` | ``false`` |
  35. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  36. | :ref:`bool<class_bool>` | :ref:`enable_depth_write<class_RDPipelineDepthStencilState_property_enable_depth_write>` | ``false`` |
  37. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  38. | :ref:`bool<class_bool>` | :ref:`enable_stencil<class_RDPipelineDepthStencilState_property_enable_stencil>` | ``false`` |
  39. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  40. | :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` | :ref:`front_op_compare<class_RDPipelineDepthStencilState_property_front_op_compare>` | ``7`` |
  41. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  42. | :ref:`int<class_int>` | :ref:`front_op_compare_mask<class_RDPipelineDepthStencilState_property_front_op_compare_mask>` | ``0`` |
  43. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  44. | :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` | :ref:`front_op_depth_fail<class_RDPipelineDepthStencilState_property_front_op_depth_fail>` | ``1`` |
  45. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  46. | :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` | :ref:`front_op_fail<class_RDPipelineDepthStencilState_property_front_op_fail>` | ``1`` |
  47. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  48. | :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` | :ref:`front_op_pass<class_RDPipelineDepthStencilState_property_front_op_pass>` | ``1`` |
  49. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  50. | :ref:`int<class_int>` | :ref:`front_op_reference<class_RDPipelineDepthStencilState_property_front_op_reference>` | ``0`` |
  51. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  52. | :ref:`int<class_int>` | :ref:`front_op_write_mask<class_RDPipelineDepthStencilState_property_front_op_write_mask>` | ``0`` |
  53. +----------------------------------------------------------------+--------------------------------------------------------------------------------------------------+-----------+
  54. Property Descriptions
  55. ---------------------
  56. .. _class_RDPipelineDepthStencilState_property_back_op_compare:
  57. - :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **back_op_compare**
  58. +-----------+----------------------------+
  59. | *Default* | ``7`` |
  60. +-----------+----------------------------+
  61. | *Setter* | set_back_op_compare(value) |
  62. +-----------+----------------------------+
  63. | *Getter* | get_back_op_compare() |
  64. +-----------+----------------------------+
  65. ----
  66. .. _class_RDPipelineDepthStencilState_property_back_op_compare_mask:
  67. - :ref:`int<class_int>` **back_op_compare_mask**
  68. +-----------+---------------------------------+
  69. | *Default* | ``0`` |
  70. +-----------+---------------------------------+
  71. | *Setter* | set_back_op_compare_mask(value) |
  72. +-----------+---------------------------------+
  73. | *Getter* | get_back_op_compare_mask() |
  74. +-----------+---------------------------------+
  75. ----
  76. .. _class_RDPipelineDepthStencilState_property_back_op_depth_fail:
  77. - :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **back_op_depth_fail**
  78. +-----------+-------------------------------+
  79. | *Default* | ``1`` |
  80. +-----------+-------------------------------+
  81. | *Setter* | set_back_op_depth_fail(value) |
  82. +-----------+-------------------------------+
  83. | *Getter* | get_back_op_depth_fail() |
  84. +-----------+-------------------------------+
  85. ----
  86. .. _class_RDPipelineDepthStencilState_property_back_op_fail:
  87. - :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **back_op_fail**
  88. +-----------+-------------------------+
  89. | *Default* | ``1`` |
  90. +-----------+-------------------------+
  91. | *Setter* | set_back_op_fail(value) |
  92. +-----------+-------------------------+
  93. | *Getter* | get_back_op_fail() |
  94. +-----------+-------------------------+
  95. ----
  96. .. _class_RDPipelineDepthStencilState_property_back_op_pass:
  97. - :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **back_op_pass**
  98. +-----------+-------------------------+
  99. | *Default* | ``1`` |
  100. +-----------+-------------------------+
  101. | *Setter* | set_back_op_pass(value) |
  102. +-----------+-------------------------+
  103. | *Getter* | get_back_op_pass() |
  104. +-----------+-------------------------+
  105. ----
  106. .. _class_RDPipelineDepthStencilState_property_back_op_reference:
  107. - :ref:`int<class_int>` **back_op_reference**
  108. +-----------+------------------------------+
  109. | *Default* | ``0`` |
  110. +-----------+------------------------------+
  111. | *Setter* | set_back_op_reference(value) |
  112. +-----------+------------------------------+
  113. | *Getter* | get_back_op_reference() |
  114. +-----------+------------------------------+
  115. ----
  116. .. _class_RDPipelineDepthStencilState_property_back_op_write_mask:
  117. - :ref:`int<class_int>` **back_op_write_mask**
  118. +-----------+-------------------------------+
  119. | *Default* | ``0`` |
  120. +-----------+-------------------------------+
  121. | *Setter* | set_back_op_write_mask(value) |
  122. +-----------+-------------------------------+
  123. | *Getter* | get_back_op_write_mask() |
  124. +-----------+-------------------------------+
  125. ----
  126. .. _class_RDPipelineDepthStencilState_property_depth_compare_operator:
  127. - :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **depth_compare_operator**
  128. +-----------+-----------------------------------+
  129. | *Default* | ``7`` |
  130. +-----------+-----------------------------------+
  131. | *Setter* | set_depth_compare_operator(value) |
  132. +-----------+-----------------------------------+
  133. | *Getter* | get_depth_compare_operator() |
  134. +-----------+-----------------------------------+
  135. ----
  136. .. _class_RDPipelineDepthStencilState_property_depth_range_max:
  137. - :ref:`float<class_float>` **depth_range_max**
  138. +-----------+----------------------------+
  139. | *Default* | ``0.0`` |
  140. +-----------+----------------------------+
  141. | *Setter* | set_depth_range_max(value) |
  142. +-----------+----------------------------+
  143. | *Getter* | get_depth_range_max() |
  144. +-----------+----------------------------+
  145. ----
  146. .. _class_RDPipelineDepthStencilState_property_depth_range_min:
  147. - :ref:`float<class_float>` **depth_range_min**
  148. +-----------+----------------------------+
  149. | *Default* | ``0.0`` |
  150. +-----------+----------------------------+
  151. | *Setter* | set_depth_range_min(value) |
  152. +-----------+----------------------------+
  153. | *Getter* | get_depth_range_min() |
  154. +-----------+----------------------------+
  155. ----
  156. .. _class_RDPipelineDepthStencilState_property_enable_depth_range:
  157. - :ref:`bool<class_bool>` **enable_depth_range**
  158. +-----------+-------------------------------+
  159. | *Default* | ``false`` |
  160. +-----------+-------------------------------+
  161. | *Setter* | set_enable_depth_range(value) |
  162. +-----------+-------------------------------+
  163. | *Getter* | get_enable_depth_range() |
  164. +-----------+-------------------------------+
  165. ----
  166. .. _class_RDPipelineDepthStencilState_property_enable_depth_test:
  167. - :ref:`bool<class_bool>` **enable_depth_test**
  168. +-----------+------------------------------+
  169. | *Default* | ``false`` |
  170. +-----------+------------------------------+
  171. | *Setter* | set_enable_depth_test(value) |
  172. +-----------+------------------------------+
  173. | *Getter* | get_enable_depth_test() |
  174. +-----------+------------------------------+
  175. ----
  176. .. _class_RDPipelineDepthStencilState_property_enable_depth_write:
  177. - :ref:`bool<class_bool>` **enable_depth_write**
  178. +-----------+-------------------------------+
  179. | *Default* | ``false`` |
  180. +-----------+-------------------------------+
  181. | *Setter* | set_enable_depth_write(value) |
  182. +-----------+-------------------------------+
  183. | *Getter* | get_enable_depth_write() |
  184. +-----------+-------------------------------+
  185. ----
  186. .. _class_RDPipelineDepthStencilState_property_enable_stencil:
  187. - :ref:`bool<class_bool>` **enable_stencil**
  188. +-----------+---------------------------+
  189. | *Default* | ``false`` |
  190. +-----------+---------------------------+
  191. | *Setter* | set_enable_stencil(value) |
  192. +-----------+---------------------------+
  193. | *Getter* | get_enable_stencil() |
  194. +-----------+---------------------------+
  195. ----
  196. .. _class_RDPipelineDepthStencilState_property_front_op_compare:
  197. - :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **front_op_compare**
  198. +-----------+-----------------------------+
  199. | *Default* | ``7`` |
  200. +-----------+-----------------------------+
  201. | *Setter* | set_front_op_compare(value) |
  202. +-----------+-----------------------------+
  203. | *Getter* | get_front_op_compare() |
  204. +-----------+-----------------------------+
  205. ----
  206. .. _class_RDPipelineDepthStencilState_property_front_op_compare_mask:
  207. - :ref:`int<class_int>` **front_op_compare_mask**
  208. +-----------+----------------------------------+
  209. | *Default* | ``0`` |
  210. +-----------+----------------------------------+
  211. | *Setter* | set_front_op_compare_mask(value) |
  212. +-----------+----------------------------------+
  213. | *Getter* | get_front_op_compare_mask() |
  214. +-----------+----------------------------------+
  215. ----
  216. .. _class_RDPipelineDepthStencilState_property_front_op_depth_fail:
  217. - :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **front_op_depth_fail**
  218. +-----------+--------------------------------+
  219. | *Default* | ``1`` |
  220. +-----------+--------------------------------+
  221. | *Setter* | set_front_op_depth_fail(value) |
  222. +-----------+--------------------------------+
  223. | *Getter* | get_front_op_depth_fail() |
  224. +-----------+--------------------------------+
  225. ----
  226. .. _class_RDPipelineDepthStencilState_property_front_op_fail:
  227. - :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **front_op_fail**
  228. +-----------+--------------------------+
  229. | *Default* | ``1`` |
  230. +-----------+--------------------------+
  231. | *Setter* | set_front_op_fail(value) |
  232. +-----------+--------------------------+
  233. | *Getter* | get_front_op_fail() |
  234. +-----------+--------------------------+
  235. ----
  236. .. _class_RDPipelineDepthStencilState_property_front_op_pass:
  237. - :ref:`StencilOperation<enum_RenderingDevice_StencilOperation>` **front_op_pass**
  238. +-----------+--------------------------+
  239. | *Default* | ``1`` |
  240. +-----------+--------------------------+
  241. | *Setter* | set_front_op_pass(value) |
  242. +-----------+--------------------------+
  243. | *Getter* | get_front_op_pass() |
  244. +-----------+--------------------------+
  245. ----
  246. .. _class_RDPipelineDepthStencilState_property_front_op_reference:
  247. - :ref:`int<class_int>` **front_op_reference**
  248. +-----------+-------------------------------+
  249. | *Default* | ``0`` |
  250. +-----------+-------------------------------+
  251. | *Setter* | set_front_op_reference(value) |
  252. +-----------+-------------------------------+
  253. | *Getter* | get_front_op_reference() |
  254. +-----------+-------------------------------+
  255. ----
  256. .. _class_RDPipelineDepthStencilState_property_front_op_write_mask:
  257. - :ref:`int<class_int>` **front_op_write_mask**
  258. +-----------+--------------------------------+
  259. | *Default* | ``0`` |
  260. +-----------+--------------------------------+
  261. | *Setter* | set_front_op_write_mask(value) |
  262. +-----------+--------------------------------+
  263. | *Getter* | get_front_op_write_mask() |
  264. +-----------+--------------------------------+
  265. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  266. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  267. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  268. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  269. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  270. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`