Outdated documentation
This documentation page refers to Godot
4.3,
and may be outdated or incorrect.
Additionally, this engine version is
no longer supported.
Check this page in the stable branch for the latest additions and corrections.
UniformSetCacheRD
Inherits: Object
Uniform set cache manager for Rendering Device based renderers.
Description
Uniform set cache manager for Rendering Device based renderers. Provides a way to create a uniform set and reuse it in subsequent calls for as long as the uniform set exists. Uniform set will automatically be cleaned up when dependent objects are freed.
Methods
get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static |
Method Descriptions
RID get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static 🔗
Creates/returns a cached uniform set based on the provided uniforms for a given shader.