pub struct ConvolutionKernel { /* private fields */ }Expand description
GPU kernel for 2D convolution.
Implementations§
Source§impl ConvolutionKernel
impl ConvolutionKernel
Sourcepub fn new(context: &GpuContext) -> GpuResult<Self>
pub fn new(context: &GpuContext) -> GpuResult<Self>
Create a new convolution kernel.
§Errors
Returns an error if shader compilation or pipeline creation fails.
Auto Trait Implementations§
impl Freeze for ConvolutionKernel
impl !RefUnwindSafe for ConvolutionKernel
impl Send for ConvolutionKernel
impl Sync for ConvolutionKernel
impl Unpin for ConvolutionKernel
impl UnsafeUnpin for ConvolutionKernel
impl !UnwindSafe for ConvolutionKernel
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