class_rdsamplerstate.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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 RDSamplerState.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RDSamplerState:
  6. RDSamplerState
  7. ==============
  8. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  12. | :ref:`float<class_float>` | :ref:`anisotropy_max<class_RDSamplerState_property_anisotropy_max>` | ``1.0`` |
  13. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  14. | :ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` | :ref:`border_color<class_RDSamplerState_property_border_color>` | ``2`` |
  15. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  16. | :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` | :ref:`compare_op<class_RDSamplerState_property_compare_op>` | ``7`` |
  17. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  18. | :ref:`bool<class_bool>` | :ref:`enable_compare<class_RDSamplerState_property_enable_compare>` | ``false`` |
  19. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  20. | :ref:`float<class_float>` | :ref:`lod_bias<class_RDSamplerState_property_lod_bias>` | ``0.0`` |
  21. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  22. | :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` | :ref:`mag_filter<class_RDSamplerState_property_mag_filter>` | ``0`` |
  23. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  24. | :ref:`float<class_float>` | :ref:`max_lod<class_RDSamplerState_property_max_lod>` | ``1e+20`` |
  25. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  26. | :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` | :ref:`min_filter<class_RDSamplerState_property_min_filter>` | ``0`` |
  27. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  28. | :ref:`float<class_float>` | :ref:`min_lod<class_RDSamplerState_property_min_lod>` | ``0.0`` |
  29. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  30. | :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` | :ref:`mip_filter<class_RDSamplerState_property_mip_filter>` | ``0`` |
  31. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  32. | :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` | :ref:`repeat_u<class_RDSamplerState_property_repeat_u>` | ``2`` |
  33. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  34. | :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` | :ref:`repeat_v<class_RDSamplerState_property_repeat_v>` | ``2`` |
  35. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  36. | :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` | :ref:`repeat_w<class_RDSamplerState_property_repeat_w>` | ``2`` |
  37. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  38. | :ref:`bool<class_bool>` | :ref:`unnormalized_uvw<class_RDSamplerState_property_unnormalized_uvw>` | ``false`` |
  39. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  40. | :ref:`bool<class_bool>` | :ref:`use_anisotropy<class_RDSamplerState_property_use_anisotropy>` | ``false`` |
  41. +--------------------------------------------------------------------+-------------------------------------------------------------------------+-----------+
  42. Property Descriptions
  43. ---------------------
  44. .. _class_RDSamplerState_property_anisotropy_max:
  45. - :ref:`float<class_float>` **anisotropy_max**
  46. +-----------+---------------------------+
  47. | *Default* | ``1.0`` |
  48. +-----------+---------------------------+
  49. | *Setter* | set_anisotropy_max(value) |
  50. +-----------+---------------------------+
  51. | *Getter* | get_anisotropy_max() |
  52. +-----------+---------------------------+
  53. ----
  54. .. _class_RDSamplerState_property_border_color:
  55. - :ref:`SamplerBorderColor<enum_RenderingDevice_SamplerBorderColor>` **border_color**
  56. +-----------+-------------------------+
  57. | *Default* | ``2`` |
  58. +-----------+-------------------------+
  59. | *Setter* | set_border_color(value) |
  60. +-----------+-------------------------+
  61. | *Getter* | get_border_color() |
  62. +-----------+-------------------------+
  63. ----
  64. .. _class_RDSamplerState_property_compare_op:
  65. - :ref:`CompareOperator<enum_RenderingDevice_CompareOperator>` **compare_op**
  66. +-----------+-----------------------+
  67. | *Default* | ``7`` |
  68. +-----------+-----------------------+
  69. | *Setter* | set_compare_op(value) |
  70. +-----------+-----------------------+
  71. | *Getter* | get_compare_op() |
  72. +-----------+-----------------------+
  73. ----
  74. .. _class_RDSamplerState_property_enable_compare:
  75. - :ref:`bool<class_bool>` **enable_compare**
  76. +-----------+---------------------------+
  77. | *Default* | ``false`` |
  78. +-----------+---------------------------+
  79. | *Setter* | set_enable_compare(value) |
  80. +-----------+---------------------------+
  81. | *Getter* | get_enable_compare() |
  82. +-----------+---------------------------+
  83. ----
  84. .. _class_RDSamplerState_property_lod_bias:
  85. - :ref:`float<class_float>` **lod_bias**
  86. +-----------+---------------------+
  87. | *Default* | ``0.0`` |
  88. +-----------+---------------------+
  89. | *Setter* | set_lod_bias(value) |
  90. +-----------+---------------------+
  91. | *Getter* | get_lod_bias() |
  92. +-----------+---------------------+
  93. ----
  94. .. _class_RDSamplerState_property_mag_filter:
  95. - :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` **mag_filter**
  96. +-----------+-----------------------+
  97. | *Default* | ``0`` |
  98. +-----------+-----------------------+
  99. | *Setter* | set_mag_filter(value) |
  100. +-----------+-----------------------+
  101. | *Getter* | get_mag_filter() |
  102. +-----------+-----------------------+
  103. ----
  104. .. _class_RDSamplerState_property_max_lod:
  105. - :ref:`float<class_float>` **max_lod**
  106. +-----------+--------------------+
  107. | *Default* | ``1e+20`` |
  108. +-----------+--------------------+
  109. | *Setter* | set_max_lod(value) |
  110. +-----------+--------------------+
  111. | *Getter* | get_max_lod() |
  112. +-----------+--------------------+
  113. ----
  114. .. _class_RDSamplerState_property_min_filter:
  115. - :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` **min_filter**
  116. +-----------+-----------------------+
  117. | *Default* | ``0`` |
  118. +-----------+-----------------------+
  119. | *Setter* | set_min_filter(value) |
  120. +-----------+-----------------------+
  121. | *Getter* | get_min_filter() |
  122. +-----------+-----------------------+
  123. ----
  124. .. _class_RDSamplerState_property_min_lod:
  125. - :ref:`float<class_float>` **min_lod**
  126. +-----------+--------------------+
  127. | *Default* | ``0.0`` |
  128. +-----------+--------------------+
  129. | *Setter* | set_min_lod(value) |
  130. +-----------+--------------------+
  131. | *Getter* | get_min_lod() |
  132. +-----------+--------------------+
  133. ----
  134. .. _class_RDSamplerState_property_mip_filter:
  135. - :ref:`SamplerFilter<enum_RenderingDevice_SamplerFilter>` **mip_filter**
  136. +-----------+-----------------------+
  137. | *Default* | ``0`` |
  138. +-----------+-----------------------+
  139. | *Setter* | set_mip_filter(value) |
  140. +-----------+-----------------------+
  141. | *Getter* | get_mip_filter() |
  142. +-----------+-----------------------+
  143. ----
  144. .. _class_RDSamplerState_property_repeat_u:
  145. - :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **repeat_u**
  146. +-----------+---------------------+
  147. | *Default* | ``2`` |
  148. +-----------+---------------------+
  149. | *Setter* | set_repeat_u(value) |
  150. +-----------+---------------------+
  151. | *Getter* | get_repeat_u() |
  152. +-----------+---------------------+
  153. ----
  154. .. _class_RDSamplerState_property_repeat_v:
  155. - :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **repeat_v**
  156. +-----------+---------------------+
  157. | *Default* | ``2`` |
  158. +-----------+---------------------+
  159. | *Setter* | set_repeat_v(value) |
  160. +-----------+---------------------+
  161. | *Getter* | get_repeat_v() |
  162. +-----------+---------------------+
  163. ----
  164. .. _class_RDSamplerState_property_repeat_w:
  165. - :ref:`SamplerRepeatMode<enum_RenderingDevice_SamplerRepeatMode>` **repeat_w**
  166. +-----------+---------------------+
  167. | *Default* | ``2`` |
  168. +-----------+---------------------+
  169. | *Setter* | set_repeat_w(value) |
  170. +-----------+---------------------+
  171. | *Getter* | get_repeat_w() |
  172. +-----------+---------------------+
  173. ----
  174. .. _class_RDSamplerState_property_unnormalized_uvw:
  175. - :ref:`bool<class_bool>` **unnormalized_uvw**
  176. +-----------+-----------------------------+
  177. | *Default* | ``false`` |
  178. +-----------+-----------------------------+
  179. | *Setter* | set_unnormalized_uvw(value) |
  180. +-----------+-----------------------------+
  181. | *Getter* | get_unnormalized_uvw() |
  182. +-----------+-----------------------------+
  183. ----
  184. .. _class_RDSamplerState_property_use_anisotropy:
  185. - :ref:`bool<class_bool>` **use_anisotropy**
  186. +-----------+---------------------------+
  187. | *Default* | ``false`` |
  188. +-----------+---------------------------+
  189. | *Setter* | set_use_anisotropy(value) |
  190. +-----------+---------------------------+
  191. | *Getter* | get_use_anisotropy() |
  192. +-----------+---------------------------+
  193. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  194. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  195. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  196. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  197. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  198. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`