use crate::{
pso::{BasePipeline, EntryPoint, PipelineCreationFlags},
Backend,
};
#[derive(Debug)]
pub struct ComputePipelineDesc<'a, B: Backend> {
pub label: Option<&'a str>,
pub shader: EntryPoint<'a, B>,
pub layout: &'a B::PipelineLayout,
pub flags: PipelineCreationFlags,
pub parent: BasePipeline<'a, B::ComputePipeline>,
}
impl<'a, B: Backend> ComputePipelineDesc<'a, B> {
pub fn new(shader: EntryPoint<'a, B>, layout: &'a B::PipelineLayout) -> Self {
ComputePipelineDesc {
label: None,
shader,
layout,
flags: PipelineCreationFlags::empty(),
parent: BasePipeline::None,
}
}
}