Class reference

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

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

Creates/returns a cached uniform set based on the provided uniforms for a given shader.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.