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.

RDShaderFile

Eredita: Resource < RefCounted < Object

File di shader compilato nel formato SPIR-V (utilizzato da RenderingDevice). Da non confondere con lo Shader di Godot.

Descrizione

File di shader compilato nel formato SPIR-V.

Vedi anche RDShaderSource. RDShaderFile è pensato per essere utilizzato solo con l'API del RenderingDevice. Non deve essere confuso con la risorsa Shader di Godot, che è quella che i vari nodi di Godot usano per la programmazione di shader di alto livello.

Proprietà

String

base_error

""

Metodi

RDShaderSPIRV

get_spirv(version: StringName = &"") const

Array[StringName]

get_version_list() const

void

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


Descrizioni delle proprietà

String base_error = "" 🔗

  • void set_base_error(value: String)

  • String get_base_error()

Il messaggio base di errore di compilazione, che indica errori non correlati a una fase specifica dello shader se non è vuoto. Se è vuoto, la compilazione dello shader non è necessariamente riuscita (verifica i membri nel messaggio di errore di RDShaderSPIRV).


Descrizioni dei metodi

RDShaderSPIRV get_spirv(version: StringName = &"") const 🔗

Restituisce la rappresentazione intermedia SPIR-V per lo shader specificato version.


Array[StringName] get_version_list() const 🔗

Restituisce la lista delle versioni compilate per questo shader.


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

Imposta il bytecode SPIR-V che verrà compilato per la versione specificata version a bytecode.