0.2.0-dev Download ZIP
40 lines ·1.3 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="RDUniform" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Shader uniform (used by [RenderingDevice]). |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This object is used by [RenderingDevice]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="add_id"> |
| 13 | <return type="void" /> |
| 14 | <param index="0" name="id" type="RID" /> |
| 15 | <description> |
| 16 | Binds the given id to the uniform. The data associated with the id is then used when the uniform is passed to a shader. |
| 17 | </description> |
| 18 | </method> |
| 19 | <method name="clear_ids"> |
| 20 | <return type="void" /> |
| 21 | <description> |
| 22 | Unbinds all ids currently bound to the uniform. |
| 23 | </description> |
| 24 | </method> |
| 25 | <method name="get_ids" qualifiers="const"> |
| 26 | <return type="RID[]" /> |
| 27 | <description> |
| 28 | Returns an array of all ids currently bound to the uniform. |
| 29 | </description> |
| 30 | </method> |
| 31 | </methods> |
| 32 | <members> |
| 33 | <member name="binding" type="int" setter="set_binding" getter="get_binding" default="0"> |
| 34 | The uniform's binding. |
| 35 | </member> |
| 36 | <member name="uniform_type" type="int" setter="set_uniform_type" getter="get_uniform_type" enum="RenderingDevice.UniformType" default="3"> |
| 37 | The uniform's data type. |
| 38 | </member> |
| 39 | </members> |
| 40 | </class> |