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.

UniformSetCacheRD

继承: Object

基于渲染设备的渲染器的 uniform 集缓存管理器。

描述

用于基于 RenderingDevice 的渲染器的 uniform 集缓存管理器。提供一种创建 uniform 集并在它存在期间的后续调用中重用它的方法。当依赖对象被释放时,uniform 集将自动被清理。

方法

RID

get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static


方法说明

RID get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static 🔗

根据给定着色器提供的 uniform 创建/返回缓存的 uniform 集。