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...
RDShaderSPIRV¶
Inherits: Resource < RefCounted < Object
SPIR-V intermediate representation as part of a RDShaderFile (used by RenderingDevice).
Description¶
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.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_stage_bytecode ( ShaderStage stage ) const |
|
get_stage_compile_error ( ShaderStage stage ) const |
|
void |
set_stage_bytecode ( ShaderStage stage, PackedByteArray bytecode ) |
void |
set_stage_compile_error ( ShaderStage stage, String compile_error ) |
Property Descriptions¶
PackedByteArray bytecode_compute = PackedByteArray()
void set_stage_bytecode ( ShaderStage stage, PackedByteArray bytecode )
PackedByteArray get_stage_bytecode ( ShaderStage stage ) const
The SPIR-V bytecode for the compute shader stage.
PackedByteArray bytecode_fragment = PackedByteArray()
void set_stage_bytecode ( ShaderStage stage, PackedByteArray bytecode )
PackedByteArray get_stage_bytecode ( ShaderStage stage )