class_rdshaderspirv.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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 RDShaderSPIRV.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RDShaderSPIRV:
  6. RDShaderSPIRV
  7. =============
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  12. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`bytecode_compute<class_RDShaderSPIRV_property_bytecode_compute>` | ``PackedByteArray()`` |
  13. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  14. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`bytecode_fragment<class_RDShaderSPIRV_property_bytecode_fragment>` | ``PackedByteArray()`` |
  15. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  16. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`bytecode_tesselation_control<class_RDShaderSPIRV_property_bytecode_tesselation_control>` | ``PackedByteArray()`` |
  17. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  18. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`bytecode_tesselation_evaluation<class_RDShaderSPIRV_property_bytecode_tesselation_evaluation>` | ``PackedByteArray()`` |
  19. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  20. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`bytecode_vertex<class_RDShaderSPIRV_property_bytecode_vertex>` | ``PackedByteArray()`` |
  21. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  22. | :ref:`String<class_String>` | :ref:`compile_error_compute<class_RDShaderSPIRV_property_compile_error_compute>` | ``""`` |
  23. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  24. | :ref:`String<class_String>` | :ref:`compile_error_fragment<class_RDShaderSPIRV_property_compile_error_fragment>` | ``""`` |
  25. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  26. | :ref:`String<class_String>` | :ref:`compile_error_tesselation_control<class_RDShaderSPIRV_property_compile_error_tesselation_control>` | ``""`` |
  27. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  28. | :ref:`String<class_String>` | :ref:`compile_error_tesselation_evaluation<class_RDShaderSPIRV_property_compile_error_tesselation_evaluation>` | ``""`` |
  29. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  30. | :ref:`String<class_String>` | :ref:`compile_error_vertex<class_RDShaderSPIRV_property_compile_error_vertex>` | ``""`` |
  31. +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------+-----------------------+
  32. Methods
  33. -------
  34. +-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`get_stage_bytecode<class_RDShaderSPIRV_method_get_stage_bytecode>` **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage **)** |const| |
  36. +-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`String<class_String>` | :ref:`get_stage_compile_error<class_RDShaderSPIRV_method_get_stage_compile_error>` **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage **)** |const| |
  38. +-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | void | :ref:`set_stage_bytecode<class_RDShaderSPIRV_method_set_stage_bytecode>` **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage, :ref:`PackedByteArray<class_PackedByteArray>` bytecode **)** |
  40. +-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | void | :ref:`set_stage_compile_error<class_RDShaderSPIRV_method_set_stage_compile_error>` **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage, :ref:`String<class_String>` compile_error **)** |
  42. +-----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. Property Descriptions
  44. ---------------------
  45. .. _class_RDShaderSPIRV_property_bytecode_compute:
  46. - :ref:`PackedByteArray<class_PackedByteArray>` **bytecode_compute**
  47. +-----------+---------------------------+
  48. | *Default* | ``PackedByteArray()`` |
  49. +-----------+---------------------------+
  50. | *Setter* | set_stage_bytecode(value) |
  51. +-----------+---------------------------+
  52. | *Getter* | get_stage_bytecode() |
  53. +-----------+---------------------------+
  54. ----
  55. .. _class_RDShaderSPIRV_property_bytecode_fragment:
  56. - :ref:`PackedByteArray<class_PackedByteArray>` **bytecode_fragment**
  57. +-----------+---------------------------+
  58. | *Default* | ``PackedByteArray()`` |
  59. +-----------+---------------------------+
  60. | *Setter* | set_stage_bytecode(value) |
  61. +-----------+---------------------------+
  62. | *Getter* | get_stage_bytecode() |
  63. +-----------+---------------------------+
  64. ----
  65. .. _class_RDShaderSPIRV_property_bytecode_tesselation_control:
  66. - :ref:`PackedByteArray<class_PackedByteArray>` **bytecode_tesselation_control**
  67. +-----------+---------------------------+
  68. | *Default* | ``PackedByteArray()`` |
  69. +-----------+---------------------------+
  70. | *Setter* | set_stage_bytecode(value) |
  71. +-----------+---------------------------+
  72. | *Getter* | get_stage_bytecode() |
  73. +-----------+---------------------------+
  74. ----
  75. .. _class_RDShaderSPIRV_property_bytecode_tesselation_evaluation:
  76. - :ref:`PackedByteArray<class_PackedByteArray>` **bytecode_tesselation_evaluation**
  77. +-----------+---------------------------+
  78. | *Default* | ``PackedByteArray()`` |
  79. +-----------+---------------------------+
  80. | *Setter* | set_stage_bytecode(value) |
  81. +-----------+---------------------------+
  82. | *Getter* | get_stage_bytecode() |
  83. +-----------+---------------------------+
  84. ----
  85. .. _class_RDShaderSPIRV_property_bytecode_vertex:
  86. - :ref:`PackedByteArray<class_PackedByteArray>` **bytecode_vertex**
  87. +-----------+---------------------------+
  88. | *Default* | ``PackedByteArray()`` |
  89. +-----------+---------------------------+
  90. | *Setter* | set_stage_bytecode(value) |
  91. +-----------+---------------------------+
  92. | *Getter* | get_stage_bytecode() |
  93. +-----------+---------------------------+
  94. ----
  95. .. _class_RDShaderSPIRV_property_compile_error_compute:
  96. - :ref:`String<class_String>` **compile_error_compute**
  97. +-----------+--------------------------------+
  98. | *Default* | ``""`` |
  99. +-----------+--------------------------------+
  100. | *Setter* | set_stage_compile_error(value) |
  101. +-----------+--------------------------------+
  102. | *Getter* | get_stage_compile_error() |
  103. +-----------+--------------------------------+
  104. ----
  105. .. _class_RDShaderSPIRV_property_compile_error_fragment:
  106. - :ref:`String<class_String>` **compile_error_fragment**
  107. +-----------+--------------------------------+
  108. | *Default* | ``""`` |
  109. +-----------+--------------------------------+
  110. | *Setter* | set_stage_compile_error(value) |
  111. +-----------+--------------------------------+
  112. | *Getter* | get_stage_compile_error() |
  113. +-----------+--------------------------------+
  114. ----
  115. .. _class_RDShaderSPIRV_property_compile_error_tesselation_control:
  116. - :ref:`String<class_String>` **compile_error_tesselation_control**
  117. +-----------+--------------------------------+
  118. | *Default* | ``""`` |
  119. +-----------+--------------------------------+
  120. | *Setter* | set_stage_compile_error(value) |
  121. +-----------+--------------------------------+
  122. | *Getter* | get_stage_compile_error() |
  123. +-----------+--------------------------------+
  124. ----
  125. .. _class_RDShaderSPIRV_property_compile_error_tesselation_evaluation:
  126. - :ref:`String<class_String>` **compile_error_tesselation_evaluation**
  127. +-----------+--------------------------------+
  128. | *Default* | ``""`` |
  129. +-----------+--------------------------------+
  130. | *Setter* | set_stage_compile_error(value) |
  131. +-----------+--------------------------------+
  132. | *Getter* | get_stage_compile_error() |
  133. +-----------+--------------------------------+
  134. ----
  135. .. _class_RDShaderSPIRV_property_compile_error_vertex:
  136. - :ref:`String<class_String>` **compile_error_vertex**
  137. +-----------+--------------------------------+
  138. | *Default* | ``""`` |
  139. +-----------+--------------------------------+
  140. | *Setter* | set_stage_compile_error(value) |
  141. +-----------+--------------------------------+
  142. | *Getter* | get_stage_compile_error() |
  143. +-----------+--------------------------------+
  144. Method Descriptions
  145. -------------------
  146. .. _class_RDShaderSPIRV_method_get_stage_bytecode:
  147. - :ref:`PackedByteArray<class_PackedByteArray>` **get_stage_bytecode** **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage **)** |const|
  148. ----
  149. .. _class_RDShaderSPIRV_method_get_stage_compile_error:
  150. - :ref:`String<class_String>` **get_stage_compile_error** **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage **)** |const|
  151. ----
  152. .. _class_RDShaderSPIRV_method_set_stage_bytecode:
  153. - void **set_stage_bytecode** **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage, :ref:`PackedByteArray<class_PackedByteArray>` bytecode **)**
  154. ----
  155. .. _class_RDShaderSPIRV_method_set_stage_compile_error:
  156. - void **set_stage_compile_error** **(** :ref:`ShaderStage<enum_RenderingDevice_ShaderStage>` stage, :ref:`String<class_String>` compile_error **)**
  157. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  158. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  159. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  160. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  161. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  162. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`