Class RDShaderFile
Compiled shader file in SPIR-V form (used by RenderingDevice). Not to be confused with Godot's own Shader.
- Inheritance
-
RDShaderFile
Remarks
Compiled shader file in SPIR-V form.
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.
Properties
base_error
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).
var base_error : String = ""
Property Value
Remarks
Methods
get_spirv(StringName)
Qualifiers: const
Returns the SPIR-V intermediate representation for the specified shader version
.
RDShaderSPIRV get_spirv(StringName version)
Parameters
version
StringName
get_version_list
Qualifiers: const
Returns the list of compiled versions for this shader.
StringName[] get_version_list
set_bytecode(RDShaderSPIRV, StringName)
Sets the SPIR-V bytecode
that will be compiled for the specified version
.
void set_bytecode(RDShaderSPIRV bytecode, StringName version)
Parameters
bytecode
RDShaderSPIRVversion
StringName