RDShaderFile
Inherits: Resource < RefCounted < Object
Description
Section titled “Description”Compiled shader file in SPIR-V form (used by RenderingDevice). Not to be confused with Orblit’s own Shader.
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 Orblit’s own Shader resource, which is what Orblit’s various nodes use for high-level shader programming.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| String | base_error |
"" |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| RDShaderSPIRV | get_spirv(version: StringName = &"") const |
| Array[StringName] | get_version_list() const |
| void | set_bytecode(bytecode: RDShaderSPIRV, version: StringName = &"") |
Property descriptions
Section titled “Property descriptions”base_error
String 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).
Method descriptions
Section titled “Method descriptions”get_spirv
RDShaderSPIRV get_spirv(version: StringName = &"") const
Returns the SPIR-V intermediate representation for the specified shader version.
get_version_list
Array[StringName] get_version_list() const
Returns the list of compiled versions for this shader.
set_bytecode
void set_bytecode(bytecode: RDShaderSPIRV, version: StringName = &"")
Sets the SPIR-V bytecode that will be compiled for the specified version.
