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.
Checking the stable version of the documentation...
RDUniform
继承: RefCounted < Object
着色器 Uniform(由 RenderingDevice 使用)。
描述
这个对象由 RenderingDevice 使用。
属性
|
||
|
方法
void |
|
void |
|
get_ids() const |
属性说明
Uniform 的绑定。
UniformType uniform_type = 3 🔗
void set_uniform_type(value: UniformType)
UniformType get_uniform_type()
Uniform 的数据类型。
方法说明
将给定的 id 绑定到该 uniform(统一变量)上。随后,当该 uniform 被传递给着色器时,就会使用与该 id 相关联的数据。
void clear_ids() 🔗
解除当前绑定到该 uniform(统一变量)上的所有 id。
返回当前绑定到该 uniform 的所有 id 的数组。