Outdated documentation
This documentation page refers to Godot
4.3,
and may be outdated or incorrect.
Additionally, this engine version is
no longer supported.
Check this page in the stable branch for the latest additions and corrections.
RDUniform
Inherits: RefCounted < Object
Shader uniform (used by RenderingDevice).
Description
This object is used by RenderingDevice.
Properties
|
||
|
Methods
void |
|
void |
|
get_ids() const |
Property Descriptions
The uniform's binding.
UniformType uniform_type = 3 🔗
void set_uniform_type(value: UniformType)
UniformType get_uniform_type()
The uniform's data type.
Method Descriptions
Binds the given id to the uniform. The data associated with the id is then used when the uniform is passed to a shader.
void clear_ids() 🔗
Unbinds all ids currently bound to the uniform.
Returns an array of all ids currently bound to the uniform.