private void UpdateWavesGPU(GameTimer gt) { // Every quarter second, generate a random wave. if ((Timer.TotalTime - _tBase) >= 0.25f) { _tBase += 0.25f; int i = MathHelper.Rand(4, _waves.RowCount - 5); int j = MathHelper.Rand(4, _waves.ColumnCount - 5); float r = MathHelper.Randf(1.0f, 2.0f); _waves.Disturb(CommandList, _wavesRootSignature, _psos["wavesDisturb"], i, j, r); } // Update the wave simulation. _waves.Update(gt, CommandList, _wavesRootSignature, _psos["wavesUpdate"]); }