internal void RegisterUniform(ITypedUniform uniform) { if (IsDisposed) { throw new ObjectDisposedException("MaterialSetBase"); } bool needQueue; lock (PendingUniformRegistrations) { needQueue = PendingUniformRegistrations.Count == 0; PendingUniformRegistrations.Add(uniform); } lock (RegisteredUniforms) RegisteredUniforms.Add(uniform); if (needQueue) { QueuePendingRegistrationHandler(); } }
internal void UnregisterUniform(ITypedUniform uniform) { }