Class reference

RDShaderFile

Inherits Resource

Compiled shader file in SPIR-V form (used by RenderingDevice). Not to be confused with Redot'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 Redot's own Shader resource, which is what Redot's various nodes use for high-level shader programming.

Properties

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).

Methods

RDShaderSPIRV get_spirv(StringName version = &"") const

Returns the SPIR-V intermediate representation for the specified shader version.

StringName[] get_version_list() const

Returns the list of compiled versions for this shader.

void set_bytecode(RDShaderSPIRV bytecode, StringName version = &"")

Sets the SPIR-V bytecode that will be compiled for the specified version.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.