class_rdshaderspirv.rst 13 KB

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