RDUniform

Hereda: RefCounted < Object

Shader uniform (used by RenderingDevice).

Descripción

Este objeto es utilizado por RenderingDevice.

Propiedades

int

binding

0

UniformType

uniform_type

3

Métodos

void

add_id(id: RID)

void

clear_ids()

Array[RID]

get_ids() const


Descripciones de Propiedades

int binding = 0 🔗

  • void set_binding(value: int)

  • int get_binding()

El enlace del uniforme.


UniformType uniform_type = 3 🔗

The uniform's data type.


Descripciones de Métodos

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.


void clear_ids() 🔗

Unbinds all ids currently bound to the uniform.


Array[RID] get_ids() const 🔗

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