See RaylibCore.GenMeshHeightmap.
MeshC GenMeshHeightmap(ImageC heightmap, Vector3C size) => _module.GenMeshHeightmap(heightmap, size);