use bevy_gpu_compute_core::{MaxOutputLengths, OutputTypeMetadata};
#[derive(Clone, Default)]
pub struct OutputSpec {
arrays: Vec<OutputTypeMetadata>,
max_lengths: MaxOutputLengths,
}
impl OutputSpec {
pub fn new(arrays: Vec<OutputTypeMetadata>, max_lengths: MaxOutputLengths) -> Self {
OutputSpec {
arrays,
max_lengths,
}
}
pub fn arrays(&self) -> &Vec<OutputTypeMetadata> {
&self.arrays
}
pub fn max_lengths(&self) -> &MaxOutputLengths {
&self.max_lengths
}
pub fn _internal_set_max_lengths(&mut self, new_max_lengths: MaxOutputLengths) {
self.max_lengths = new_max_lengths;
}
}