pub struct GpuComputePipeline { /* private fields */ }Expand description
Wrapper around GPU compute pipeline that can be real or mock.
Implementations§
Source§impl GpuComputePipeline
impl GpuComputePipeline
Sourcepub fn from_wgpu(pipeline: ComputePipeline) -> Self
pub fn from_wgpu(pipeline: ComputePipeline) -> Self
Create from real WGPU compute pipeline
Sourcepub fn as_wgpu(&self) -> &ComputePipeline
pub fn as_wgpu(&self) -> &ComputePipeline
Get the underlying wgpu::ComputePipeline (if real)
Trait Implementations§
Source§impl Clone for GpuComputePipeline
impl Clone for GpuComputePipeline
Source§fn clone(&self) -> GpuComputePipeline
fn clone(&self) -> GpuComputePipeline
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GpuComputePipeline
impl !RefUnwindSafe for GpuComputePipeline
impl Send for GpuComputePipeline
impl Sync for GpuComputePipeline
impl Unpin for GpuComputePipeline
impl UnsafeUnpin for GpuComputePipeline
impl !UnwindSafe for GpuComputePipeline
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