blob: 6336cfd47abf4ebf4b9d37556cd837e232f2fe88 [file]
// Copyright 2023 The Vello authors
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
use vello_encoding::{BumpAllocators, IndirectCount};
use crate::cpu_dispatch::CpuBinding;
const WG_SIZE: usize = 256;
fn path_count_setup_main(bump: &BumpAllocators, indirect: &mut IndirectCount) {
let lines = bump.lines;
indirect.count_x = (lines + (WG_SIZE as u32 - 1)) / WG_SIZE as u32;
indirect.count_y = 1;
indirect.count_z = 1;
}
pub fn path_count_setup(_n_wg: u32, resources: &[CpuBinding]) {
let bump = resources[0].as_typed();
let mut indirect = resources[1].as_typed_mut();
path_count_setup_main(&bump, &mut indirect);
}