pub struct F32ToTypeKernel { /* private fields */ }Expand description
GPU kernel for converting f32 back to other data types.
Implementations§
Source§impl F32ToTypeKernel
impl F32ToTypeKernel
Sourcepub fn new(context: &GpuContext, dst_type: GpuDataType) -> GpuResult<Self>
pub fn new(context: &GpuContext, dst_type: GpuDataType) -> GpuResult<Self>
Create a new kernel for converting f32 to another type.
§Errors
Returns an error if shader compilation or pipeline creation fails.
Auto Trait Implementations§
impl Freeze for F32ToTypeKernel
impl !RefUnwindSafe for F32ToTypeKernel
impl Send for F32ToTypeKernel
impl Sync for F32ToTypeKernel
impl Unpin for F32ToTypeKernel
impl UnsafeUnpin for F32ToTypeKernel
impl !UnwindSafe for F32ToTypeKernel
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