mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
81064cc239
We don't use that info for anything, and it generates unnecessary diffs every time we bump the minor version (and CI failures if we forget to sync some files from opt-in modules (mono, text_server_fb).
41 lines
1.9 KiB
XML
41 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="RDShaderFile" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Compiled shader file in SPIR-V form (used by [RenderingDevice]). Not to be confused with Godot's own [Shader].
|
|
</brief_description>
|
|
<description>
|
|
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.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="get_spirv" qualifiers="const">
|
|
<return type="RDShaderSPIRV" />
|
|
<param index="0" name="version" type="StringName" default="&""" />
|
|
<description>
|
|
Returns the SPIR-V intermediate representation for the specified shader [param version].
|
|
</description>
|
|
</method>
|
|
<method name="get_version_list" qualifiers="const">
|
|
<return type="StringName[]" />
|
|
<description>
|
|
Returns the list of compiled versions for this shader.
|
|
</description>
|
|
</method>
|
|
<method name="set_bytecode">
|
|
<return type="void" />
|
|
<param index="0" name="bytecode" type="RDShaderSPIRV" />
|
|
<param index="1" name="version" type="StringName" default="&""" />
|
|
<description>
|
|
Sets the SPIR-V [param bytecode] that will be compiled for the specified [param version].
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="base_error" type="String" setter="set_base_error" getter="get_base_error" default="""">
|
|
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).
|
|
</member>
|
|
</members>
|
|
</class>
|