예제 #1
0
        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();
            }
        }
예제 #2
0
 internal void UnregisterUniform(ITypedUniform uniform)
 {
 }