Table of Contents

Class RDShaderSpirV

Namespace
Godot
Assembly
GodotSharp.dll

RDShaderSpirV represents a 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.

[GodotClassName("RDShaderSPIRV")]
public class RDShaderSpirV : Resource, IDisposable
Inheritance
RDShaderSpirV
Implements
Inherited Members

Constructors

RDShaderSpirV()

public RDShaderSpirV()

Properties

BytecodeCompute

The SPIR-V bytecode for the compute shader stage.

public byte[] BytecodeCompute { get; set; }

Property Value

byte[]

BytecodeFragment

The SPIR-V bytecode for the fragment shader stage.

public byte[] BytecodeFragment { get; set; }

Property Value

byte[]

BytecodeTesselationControl

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

public byte[] BytecodeTesselationControl { get; set; }

Property Value

byte[]

BytecodeTesselationEvaluation

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

public byte[] BytecodeTesselationEvaluation { get; set; }

Property Value

byte[]

BytecodeVertex

The SPIR-V bytecode for the vertex shader stage.

public byte[] BytecodeVertex { get; set; }

Property Value

byte[]

CompileErrorCompute

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

public string CompileErrorCompute { get; set; }

Property Value

string

CompileErrorFragment

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

public string CompileErrorFragment { get; set; }

Property Value

string

CompileErrorTesselationControl

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

public string CompileErrorTesselationControl { get; set; }

Property Value

string

CompileErrorTesselationEvaluation

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

public string CompileErrorTesselationEvaluation { get; set; }

Property Value

string

CompileErrorVertex

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

public string CompileErrorVertex { get; set; }

Property Value

string

Methods

HasGodotClassMethod(in godot_string_name)

Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.

protected override bool HasGodotClassMethod(in godot_string_name method)

Parameters

method godot_string_name

Name of the method to check for.

Returns

bool

HasGodotClassSignal(in godot_string_name)

Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.

protected override bool HasGodotClassSignal(in godot_string_name signal)

Parameters

signal godot_string_name

Name of the signal to check for.

Returns

bool

InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)

Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.

protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)

Parameters

method godot_string_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool