pub struct WebGpuBackend { /* private fields */ }
Expand description
WebGPU backend implementation for neural operations
Implementations§
Source§impl WebGpuBackend
impl WebGpuBackend
Sourcepub fn new(config: &BridgeConfig) -> NeuralResult<Self>
pub fn new(config: &BridgeConfig) -> NeuralResult<Self>
Create a new WebGPU backend
Trait Implementations§
Source§impl GpuBackendTrait for WebGpuBackend
impl GpuBackendTrait for WebGpuBackend
fn initialize(&self) -> NeuralResult<()>
fn is_available(&self) -> bool
fn get_device_info(&self) -> DeviceInfo
fn create_buffer(&self, size: usize) -> NeuralResult<BufferHandle>
fn execute_kernel( &self, kernel: &CompiledKernel, inputs: &[BufferHandle], ) -> NeuralResult<BufferHandle>
Auto Trait Implementations§
impl Freeze for WebGpuBackend
impl !RefUnwindSafe for WebGpuBackend
impl Send for WebGpuBackend
impl Sync for WebGpuBackend
impl Unpin for WebGpuBackend
impl !UnwindSafe for WebGpuBackend
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