RDUniform
Inherits: RefCounted < Object
Description
Section titled “Description”Shader uniform (used by RenderingDevice).
This object is used by RenderingDevice.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | binding |
0 |
| RenderingDevice.UniformType | uniform_type |
3 |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | add_id(id: RID) |
| void | clear_ids() |
| Array[RID] | get_ids() const |
Property descriptions
Section titled “Property descriptions”binding
int binding = 0
The uniform’s binding.
uniform_type
RenderingDevice.UniformType uniform_type = 3
The uniform’s data type.
Method descriptions
Section titled “Method descriptions”add_id
void add_id(id: RID)
Binds the given id to the uniform. The data associated with the id is then used when the uniform is passed to a shader.
clear_ids
void clear_ids()
Unbinds all ids currently bound to the uniform.
get_ids
Returns an array of all ids currently bound to the uniform.
