Inherits: Resource < RefCounted < Object
Compiled shader file in SPIR-V form (used by RenderingDevice). Not to be confused with Godot's own Shader.
Compiled shader file in SPIR-V form.
See also RDShaderSource. RDShaderFile is only meant to be used with the RenderingDevice API. It should not be confused with Godot's own Shader resource, which is what Godot's various nodes use for high-level shader programming.
|
get_spirv ( StringName version=&"" ) const | |
get_version_list ( ) const | |
void | set_bytecode ( RDShaderSPIRV bytecode, StringName version=&"" ) |
""
The base compilation error message, which indicates errors not related to a specific shader stage if non-empty. If empty, shader compilation is not necessarily successful (check RDShaderSPIRV's error message members).
Returns the SPIR-V intermediate representation for the specified shader version.
Returns the list of compiled versions for this shader.
Sets the SPIR-V bytecode that will be compiled for the specified version.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_rdshaderfile.html