pub fn pack_params(
chunk_count: u32,
tile_res: u32,
water_height: f32,
height_scale: f32,
user: &[f32],
) -> Vec<u8> ⓘExpand description
Pack the custom-surface params buffer (std430) read by the template’s
binding-4 Params block: the four fixed fields
{chunk_count, tile_res, water_height, height_scale} followed by
MAX_USER_PARAMS user floats (cels_user[16]). Extra user values are
ignored; missing ones are zero-filled. Total = 16 + 4*MAX_USER_PARAMS bytes.