Table of Contents

Class RDUniform

Shader uniform (used by RenderingDevice).

Inheritance
RDUniform

Remarks

This object is used by RenderingDevice.

Properties

binding

The uniform's binding.

var binding : int = 0

Property Value

int

Remarks

  • void set_binding(int value)
  • int get_binding

uniform_type

The uniform's data type.

var uniform_type : int = 3

Property Value

int

Remarks

  • void set_uniform_type(int value)
  • int get_uniform_type

Methods

add_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 add_id(RID id)

Parameters

id RID

clear_ids

Unbinds all ids currently bound to the uniform.

void clear_ids

get_ids

Qualifiers: const

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

RID[] get_ids