Skip to content

RDUniform

Inherits: RefCounted < Object

Shader uniform (used by RenderingDevice).

This object is used by RenderingDevice.

Type Name Default
int binding 0
RenderingDevice.UniformType uniform_type 3
Returns Method
void add_id(id: RID)
void clear_ids()
Array[RID] get_ids() const

binding

int binding = 0

The uniform’s binding.

uniform_type

RenderingDevice.UniformType uniform_type = 3

The uniform’s data type.

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

Array[RID] get_ids() const

Returns an array of all ids currently bound to the uniform.