internal protected override void GraphicsDeviceResetting() { for (var i = 0; i < ConstantBuffers.Length; i++) ConstantBuffers[i].Clear(); }