Move `MeshUniform` allocation from the CPU to the GPU. (#23662)