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