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.
Checking the stable version of the documentation...
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à
|
Metodi
get_spirv(version: StringName = &"") const |
|
get_version_list() const |
|
void |
set_bytecode(bytecode: RDShaderSPIRV, version: StringName = &"") |
Descrizioni delle proprietà
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.