UniformSetCacheRD
Inherits: Object
Description
Section titled “Description”Uniform set cache manager for Rendering Device based renderers.
Uniform set cache manager for RenderingDevice-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
Section titled “Methods”| Returns | Method |
|---|---|
| RID | get_cache(shader: RID, set: int, uniforms: Array[RDUniform]) static |
Method descriptions
Section titled “Method descriptions”get_cache
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.
