bevy_gpu_compute 0.1.2

Empowering anyone to leverage GPU-acceleration with as little barrier-to-entry as possible
Documentation
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
    }
    /// ensure that runtime state was properly updated whenever you update max lengths
    pub fn _internal_set_max_lengths(&mut self, new_max_lengths: MaxOutputLengths) {
        self.max_lengths = new_max_lengths;
    }
}