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 的数组。