2020-04-20 10:19:21 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-07-06 16:08:05 +08:00
|
|
|
<class name="RDUniform" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
2020-04-20 10:19:21 +08:00
|
|
|
<brief_description>
|
2023-03-28 23:32:29 +08:00
|
|
|
Shader uniform (used by [RenderingDevice]).
|
2020-04-20 10:19:21 +08:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-03-28 23:32:29 +08:00
|
|
|
This object is used by [RenderingDevice].
|
2020-04-20 10:19:21 +08:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_id">
|
2021-07-30 21:28:05 +08:00
|
|
|
<return type="void" />
|
2022-08-07 02:11:48 +08:00
|
|
|
<param index="0" name="id" type="RID" />
|
2020-04-20 10:19:21 +08:00
|
|
|
<description>
|
2023-11-25 13:22:49 +08:00
|
|
|
Binds the given id to the uniform. The data associated with the id is then used when the uniform is passed to a shader.
|
2020-04-20 10:19:21 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clear_ids">
|
2021-07-30 21:28:05 +08:00
|
|
|
<return type="void" />
|
2020-04-20 10:19:21 +08:00
|
|
|
<description>
|
2023-11-25 13:22:49 +08:00
|
|
|
Unbinds all ids currently bound to the uniform.
|
2020-04-20 10:19:21 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_ids" qualifiers="const">
|
2022-08-06 02:35:08 +08:00
|
|
|
<return type="RID[]" />
|
2020-04-20 10:19:21 +08:00
|
|
|
<description>
|
2023-11-25 13:22:49 +08:00
|
|
|
Returns an array of all ids currently bound to the uniform.
|
2020-04-20 10:19:21 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="binding" type="int" setter="set_binding" getter="get_binding" default="0">
|
2023-03-28 23:32:29 +08:00
|
|
|
The uniform's binding.
|
2020-04-20 10:19:21 +08:00
|
|
|
</member>
|
2020-10-17 09:19:21 +08:00
|
|
|
<member name="uniform_type" type="int" setter="set_uniform_type" getter="get_uniform_type" enum="RenderingDevice.UniformType" default="3">
|
2023-03-28 23:32:29 +08:00
|
|
|
The uniform's data type.
|
2020-04-20 10:19:21 +08:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
</class>
|