pub fn pack_scatter_params(
chunk_count: u32,
capacity: u32,
k_per_cell: u32,
lod_level: u32,
radius: f32,
density: f32,
max_instances: u32,
seed: u32,
vis_count: u32,
min_height: f32,
max_height: f32,
base_scale: f32,
surface_enabled: f32,
surface_height_scale: f32,
tile_res: u32,
terrain: &TerrainGpu,
) -> Vec<u8> ⓘExpand description
Pack one ScatterParamsGpu into bytes for its per-layer buffer.