RDShaderFile (original) (raw)
Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Inherits: Resource < RefCounted < Object
Compiled shader file in SPIR-V form (used by RenderingDevice). Not to be confused with Godot's own Shader.
Description
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
Methods
Property Descriptions
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).
Method Descriptions
RDShaderSPIRV get_spirv(version: StringName = &"") const 🔗
Returns the SPIR-V intermediate representation for the specified shader version
.
Array[StringName] get_version_list() const 🔗
Returns the list of compiled versions for this shader.
void set_bytecode(bytecode: RDShaderSPIRV, version: StringName = &"") 🔗
Sets the SPIR-V bytecode
that will be compiled for the specified version
.