Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
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 ) const
The SPIR-V bytecode for the fragment shader stage.
PackedByteArray bytecode_tesselation_control = PackedByteArray()
void set_stage_bytecode ( ShaderStage stage, PackedByteArray bytecode )
PackedByteArray get_stage_bytecode ( ShaderStage stage ) const
The SPIR-V bytecode for the tessellation control shader stage.
PackedByteArray bytecode_tesselation_evaluation = PackedByteArray()
void set_stage_bytecode ( ShaderStage stage, PackedByteArray bytecode )
PackedByteArray get_stage_bytecode ( ShaderStage stage )