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