Skip to content
0.2.0-dev Download ZIP
33 lines ·1.5 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="ShaderIncludeDB" inherits="Object" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Internal database of built in shader include files.
5 </brief_description>
6 <description>
7 This object contains shader fragments from Godot's internal shaders. These can be used when access to internal uniform buffers and/or internal functions is required for instance when composing compositor effects or compute shaders. Only fragments for the current rendering device are loaded.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="get_built_in_include_file" qualifiers="static">
13 <return type="String" />
14 <param index="0" name="filename" type="String" />
15 <description>
16 Returns the code for the built-in shader fragment. You can also access this in your shader code through [code]#include "filename"[/code].
17 </description>
18 </method>
19 <method name="has_built_in_include_file" qualifiers="static">
20 <return type="bool" />
21 <param index="0" name="filename" type="String" />
22 <description>
23 Returns [code]true[/code] if an include file with this name exists.
24 </description>
25 </method>
26 <method name="list_built_in_include_files" qualifiers="static">
27 <return type="PackedStringArray" />
28 <description>
29 Returns a list of built-in include files that are currently registered.
30 </description>
31 </method>
32 </methods>
33</class>