Waves will tend to destroy floating offshore solar farms. Wind farms are less affected because their cross-sectional area near the water surface is small relative to their mass.
But if the panels were in a semi-flexible frame with underwater floats, the waves could be made to mostly run under them.