pub struct ComputePipelineDesc<'a, D: Device> {
pub label: &'static str,
pub layouts: &'a [Option<&'a D::BindGroupLayout>],
pub shader: &'a D::ShaderModule,
pub entry: &'static str,
}Expand description
Everything needed to create a compute pipeline.
Fields§
§label: &'static strDebug label.
layouts: &'a [Option<&'a D::BindGroupLayout>]Bind-group layouts by group index; None for unused slots.
shader: &'a D::ShaderModuleThe compiled module.
entry: &'static strCompute entry point name.
Trait Implementations§
Auto Trait Implementations§
impl<'a, D> Freeze for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: Freeze,
&'a <D as Device>::ShaderModule: Freeze,
impl<'a, D> RefUnwindSafe for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: RefUnwindSafe,
&'a <D as Device>::ShaderModule: RefUnwindSafe,
impl<'a, D> Send for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: Send,
&'a <D as Device>::ShaderModule: Send,
impl<'a, D> Sync for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: Sync,
&'a <D as Device>::ShaderModule: Sync,
impl<'a, D> Unpin for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: Unpin,
&'a <D as Device>::ShaderModule: Unpin,
impl<'a, D> UnsafeUnpin for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: UnsafeUnpin,
&'a <D as Device>::ShaderModule: UnsafeUnpin,
impl<'a, D> UnwindSafe for ComputePipelineDesc<'a, D>where
&'a [Option<&'a <D as Device>::BindGroupLayout>]: UnwindSafe,
&'a <D as Device>::ShaderModule: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more