Class reference

RDUniform

Inherits RefCounted

Shader uniform (used by RenderingDevice).

Description

This object is used by RenderingDevice.

Properties

int binding = 0

The uniform's binding.

int uniform_type = 3

The uniform's data type.

Methods

void add_id(RID id)

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.

RID[] get_ids() const

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

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.