Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

RDUniform

Hérite de : RefCounted < Object

Shader uniform (used by RenderingDevice).

Description

This object is used by RenderingDevice.

Propriétés

int

binding

0

UniformType

uniform_type

3

Méthodes

void

add_id(id: RID)

void

clear_ids()

Array[RID]

get_ids() const


Descriptions des propriétés

int binding = 0 🔗

  • void set_binding(value: int)

  • int get_binding()

The uniform's binding.


UniformType uniform_type = 3 🔗

Le type de données de l'uniform.


Descriptions des méthodes

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.