class_rdtextureview.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/RDTextureView.xml.
  6. .. _class_RDTextureView:
  7. RDTextureView
  8. =============
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Texture view (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:`DataFormat<enum_RenderingDevice_DataFormat>` | :ref:`format_override<class_RDTextureView_property_format_override>` | ``218`` |
  22. +------------------------------------------------------------+----------------------------------------------------------------------+---------+
  23. | :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` | :ref:`swizzle_a<class_RDTextureView_property_swizzle_a>` | ``6`` |
  24. +------------------------------------------------------------+----------------------------------------------------------------------+---------+
  25. | :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` | :ref:`swizzle_b<class_RDTextureView_property_swizzle_b>` | ``5`` |
  26. +------------------------------------------------------------+----------------------------------------------------------------------+---------+
  27. | :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` | :ref:`swizzle_g<class_RDTextureView_property_swizzle_g>` | ``4`` |
  28. +------------------------------------------------------------+----------------------------------------------------------------------+---------+
  29. | :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` | :ref:`swizzle_r<class_RDTextureView_property_swizzle_r>` | ``3`` |
  30. +------------------------------------------------------------+----------------------------------------------------------------------+---------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Property Descriptions
  35. ---------------------
  36. .. _class_RDTextureView_property_format_override:
  37. .. rst-class:: classref-property
  38. :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **format_override** = ``218``
  39. .. rst-class:: classref-property-setget
  40. - void **set_format_override** **(** :ref:`DataFormat<enum_RenderingDevice_DataFormat>` value **)**
  41. - :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **get_format_override** **(** **)**
  42. Optional override for the data format to return sampled values in. The default value of :ref:`RenderingDevice.DATA_FORMAT_MAX<class_RenderingDevice_constant_DATA_FORMAT_MAX>` does not override the format.
  43. .. rst-class:: classref-item-separator
  44. ----
  45. .. _class_RDTextureView_property_swizzle_a:
  46. .. rst-class:: classref-property
  47. :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **swizzle_a** = ``6``
  48. .. rst-class:: classref-property-setget
  49. - void **set_swizzle_a** **(** :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` value **)**
  50. - :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **get_swizzle_a** **(** **)**
  51. The channel to sample when sampling the alpha channel.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_RDTextureView_property_swizzle_b:
  55. .. rst-class:: classref-property
  56. :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **swizzle_b** = ``5``
  57. .. rst-class:: classref-property-setget
  58. - void **set_swizzle_b** **(** :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` value **)**
  59. - :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **get_swizzle_b** **(** **)**
  60. The channel to sample when sampling the blue color channel.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_RDTextureView_property_swizzle_g:
  64. .. rst-class:: classref-property
  65. :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **swizzle_g** = ``4``
  66. .. rst-class:: classref-property-setget
  67. - void **set_swizzle_g** **(** :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` value **)**
  68. - :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **get_swizzle_g** **(** **)**
  69. The channel to sample when sampling the green color channel.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_RDTextureView_property_swizzle_r:
  73. .. rst-class:: classref-property
  74. :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **swizzle_r** = ``3``
  75. .. rst-class:: classref-property-setget
  76. - void **set_swizzle_r** **(** :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` value **)**
  77. - :ref:`TextureSwizzle<enum_RenderingDevice_TextureSwizzle>` **get_swizzle_r** **(** **)**
  78. The channel to sample when sampling the red color channel.
  79. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  80. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  81. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  82. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  83. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  84. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  85. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`