Struct gfx_hal::pso::ComputePipelineDesc
source · pub struct ComputePipelineDesc<'a, B: Backend> {
pub shader: EntryPoint<'a, B>,
pub layout: &'a B::PipelineLayout,
pub flags: PipelineCreationFlags,
pub parent: BasePipeline<'a, B::ComputePipeline>,
}Expand description
A description of the data needed to construct a compute pipeline.
Fields
shader: EntryPoint<'a, B>The shader entry point that performs the computation.
layout: &'a B::PipelineLayoutPipeline layout.
flags: PipelineCreationFlagsAny flags necessary for the pipeline creation.
parent: BasePipeline<'a, B::ComputePipeline>The parent pipeline to this one, if any.
Implementations
sourceimpl<'a, B: Backend> ComputePipelineDesc<'a, B>
impl<'a, B: Backend> ComputePipelineDesc<'a, B>
sourcepub fn new(shader: EntryPoint<'a, B>, layout: &'a B::PipelineLayout) -> Self
pub fn new(shader: EntryPoint<'a, B>, layout: &'a B::PipelineLayout) -> Self
Create a new empty PSO descriptor.
Trait Implementations
sourceimpl<'a, B: Debug + Backend> Debug for ComputePipelineDesc<'a, B>where
B::PipelineLayout: Debug,
B::ComputePipeline: Debug,
impl<'a, B: Debug + Backend> Debug for ComputePipelineDesc<'a, B>where
B::PipelineLayout: Debug,
B::ComputePipeline: Debug,
Auto Trait Implementations
impl<'a, B> RefUnwindSafe for ComputePipelineDesc<'a, B>where
<B as Backend>::ComputePipeline: RefUnwindSafe,
<B as Backend>::PipelineLayout: RefUnwindSafe,
<B as Backend>::ShaderModule: RefUnwindSafe,
impl<'a, B> Send for ComputePipelineDesc<'a, B>
impl<'a, B> Sync for ComputePipelineDesc<'a, B>
impl<'a, B> Unpin for ComputePipelineDesc<'a, B>
impl<'a, B> UnwindSafe for ComputePipelineDesc<'a, B>where
<B as Backend>::ComputePipeline: RefUnwindSafe,
<B as Backend>::PipelineLayout: RefUnwindSafe,
<B as Backend>::ShaderModule: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more