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 集快取管理器。
說明
用於基於 RenderingDevice 的渲染器的 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 集。