use crate::{CudaError, plan::CudaPlaneInput};
pub(crate) use jxr_core::device_plan::OverlapSchedule;
pub(crate) fn first_overlap_schedule(
plane: CudaPlaneInput,
hard_tiles: bool,
tile_columns: &[u32],
tile_rows: &[u32],
) -> Result<OverlapSchedule, CudaError> {
jxr_core::device_plan::first_overlap_schedule(plane, hard_tiles, tile_columns, tile_rows)
.map_err(Into::into)
}
pub(crate) fn second_overlap_schedule(
plane: CudaPlaneInput,
hard_tiles: bool,
tile_columns: &[u32],
tile_rows: &[u32],
) -> Result<OverlapSchedule, CudaError> {
jxr_core::device_plan::second_overlap_schedule(plane, hard_tiles, tile_columns, tile_rows)
.map_err(Into::into)
}