0.2.0-dev Download ZIP
40 lines ·1.9 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="RDShaderFile" inherits="Resource" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Compiled shader file in SPIR-V form (used by [RenderingDevice]). Not to be confused with Godot's own [Shader]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Compiled shader file in SPIR-V form. |
| 8 | See also [RDShaderSource]. [RDShaderFile] is only meant to be used with the [RenderingDevice] API. It should not be confused with Godot's own [Shader] resource, which is what Godot's various nodes use for high-level shader programming. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="get_spirv" qualifiers="const"> |
| 14 | <return type="RDShaderSPIRV" /> |
| 15 | <param index="0" name="version" type="StringName" default="&""" /> |
| 16 | <description> |
| 17 | Returns the SPIR-V intermediate representation for the specified shader [param version]. |
| 18 | </description> |
| 19 | </method> |
| 20 | <method name="get_version_list" qualifiers="const"> |
| 21 | <return type="StringName[]" /> |
| 22 | <description> |
| 23 | Returns the list of compiled versions for this shader. |
| 24 | </description> |
| 25 | </method> |
| 26 | <method name="set_bytecode"> |
| 27 | <return type="void" /> |
| 28 | <param index="0" name="bytecode" type="RDShaderSPIRV" /> |
| 29 | <param index="1" name="version" type="StringName" default="&""" /> |
| 30 | <description> |
| 31 | Sets the SPIR-V [param bytecode] that will be compiled for the specified [param version]. |
| 32 | </description> |
| 33 | </method> |
| 34 | </methods> |
| 35 | <members> |
| 36 | <member name="base_error" type="String" setter="set_base_error" getter="get_base_error" default=""""> |
| 37 | The base compilation error message, which indicates errors not related to a specific shader stage if non-empty. If empty, shader compilation is not necessarily successful (check [RDShaderSPIRV]'s error message members). |
| 38 | </member> |
| 39 | </members> |
| 40 | </class> |