internal void SetConstantBuffers(GraphicsDevice device, int shaderProgram) { if (this._valid == 0) { return; } int num = this._valid; for (int index = 0; index < this._buffers.Length; ++index) { ConstantBuffer constantBuffer = this._buffers[index]; if (constantBuffer != null) { constantBuffer.Apply(device, shaderProgram); } num &= ~(1 << index); if (num == 0) { break; } } }