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...
UniformSetCacheRD
继承: Object
基于渲染设备的渲染器的 uniform 集缓存管理器。
描述
基于渲染设备的渲染器的 uniform 集缓存管理器。提供一种创建 uniform 集并在后续调用中重用它的方法(只要该 uniform 集存在)。当依赖的对象被释放时,该 uniform 集将自动被清理。
方法
get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static |
方法说明
RID get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static 🔗
根据给定着色器提供的 uniform 创建/返回缓存的 uniform 集。