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