Cached Uniform
class CachedUniform<T : Any>(define: ClientUniformDefine, writer: Std140Builder.(T) -> Unit) : AutoCloseable
Retains the last uniform slice across frames and uploads a new one only when T changes.
The backing ring buffer prevents an update from overwriting data still consumed by the GPU.