godot/doc/classes/RDShaderFile.xml
Juan Linietsky ae09b55a19 Exposed RenderingDevice to script API
Also added an easier way to load native GLSL shaders.

Extras:

Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload.

Note:

The precommit hooks are broken because they don't seem to support enums from one class being used in another.
Feel free to fix this after merging this PR.
2020-04-20 21:21:58 -03:00

42 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="RDShaderFile" inherits="Resource" version="4.0">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
<method name="get_bytecode" qualifiers="const">
<return type="RDShaderBytecode">
</return>
<argument index="0" name="version" type="StringName" default="@&quot;&quot;">
</argument>
<description>
</description>
</method>
<method name="get_version_list" qualifiers="const">
<return type="PackedStringArray">
</return>
<description>
</description>
</method>
<method name="set_bytecode">
<return type="void">
</return>
<argument index="0" name="bytecode" type="RDShaderBytecode">
</argument>
<argument index="1" name="version" type="StringName" default="@&quot;&quot;">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="base_error" type="String" setter="set_base_error" getter="get_base_error" default="&quot;&quot;">
</member>
</members>
<constants>
</constants>
</class>