pub struct DataTypeConversionKernel { /* private fields */ }Expand description
GPU kernel for data type conversion operations.
Implementations§
Source§impl DataTypeConversionKernel
impl DataTypeConversionKernel
Sourcepub fn new(context: &GpuContext, src_type: GpuDataType) -> GpuResult<Self>
pub fn new(context: &GpuContext, src_type: GpuDataType) -> GpuResult<Self>
Create a new data type conversion kernel.
This kernel converts data from any supported type to f32 with optional scaling and offset.
§Errors
Returns an error if shader compilation or pipeline creation fails.
Auto Trait Implementations§
impl Freeze for DataTypeConversionKernel
impl !RefUnwindSafe for DataTypeConversionKernel
impl Send for DataTypeConversionKernel
impl Sync for DataTypeConversionKernel
impl Unpin for DataTypeConversionKernel
impl UnsafeUnpin for DataTypeConversionKernel
impl !UnwindSafe for DataTypeConversionKernel
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