Class reference

RDShaderSPIRV

Inherits Resource

SPIR-V intermediate representation as part of an RDShaderFile (used by RenderingDevice).

Description

RDShaderSPIRV represents an RDShaderFile's SPIR-V code for various shader stages, as well as possible compilation error messages. SPIR-V is a low-level intermediate shader representation. This intermediate representation is not used directly by GPUs for rendering, but it can be compiled into binary shaders that GPUs can understand. Unlike compiled shaders, SPIR-V is portable across GPU models and driver versions. This object is used by RenderingDevice.

Properties

PackedByteArray bytecode_compute = PackedByteArray()

The SPIR-V bytecode for the compute shader stage.

PackedByteArray bytecode_fragment = PackedByteArray()

The SPIR-V bytecode for the fragment shader stage.

PackedByteArray bytecode_tesselation_control = PackedByteArray()

The SPIR-V bytecode for the tessellation control shader stage.

PackedByteArray bytecode_tesselation_evaluation = PackedByteArray()

The SPIR-V bytecode for the tessellation evaluation shader stage.

PackedByteArray bytecode_vertex = PackedByteArray()

The SPIR-V bytecode for the vertex shader stage.

String compile_error_compute = ""

The compilation error message for the compute shader stage (set by the SPIR-V compiler and Redot). If empty, shader compilation was successful.

String compile_error_fragment = ""

The compilation error message for the fragment shader stage (set by the SPIR-V compiler and Redot). If empty, shader compilation was successful.

String compile_error_tesselation_control = ""

The compilation error message for the tessellation control shader stage (set by the SPIR-V compiler and Redot). If empty, shader compilation was successful.

String compile_error_tesselation_evaluation = ""

The compilation error message for the tessellation evaluation shader stage (set by the SPIR-V compiler and Redot). If empty, shader compilation was successful.

String compile_error_vertex = ""

The compilation error message for the vertex shader stage (set by the SPIR-V compiler and Redot). If empty, shader compilation was successful.

Methods

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.