Struct wgpu::ComputePipeline
source · pub struct ComputePipeline { /* private fields */ }
Expand description
Handle to a compute pipeline.
A ComputePipeline
object represents a compute pipeline and its single shader stage.
It can be created with Device::create_compute_pipeline
.
Corresponds to WebGPU GPUComputePipeline
.
Implementations§
source§impl ComputePipeline
impl ComputePipeline
sourcepub fn get_bind_group_layout(&self, index: u32) -> BindGroupLayout
pub fn get_bind_group_layout(&self, index: u32) -> BindGroupLayout
Get an object representing the bind group layout at a given index.
Trait Implementations§
source§impl Debug for ComputePipeline
impl Debug for ComputePipeline
Auto Trait Implementations§
impl !RefUnwindSafe for ComputePipeline
impl Send for ComputePipeline
impl Sync for ComputePipeline
impl Unpin for ComputePipeline
impl !UnwindSafe for ComputePipeline
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