Skip to main content

Module backend

Module backend 

Source
Expand description

Multi-Backend Abstraction

Provides a unified interface for different GPU backends:

  • CUDA (NVIDIA) - Primary, uses PTX
  • WGPU (WebGPU) - Cross-platform, uses WGSL (Vulkan/Metal/DX12/WebGPU)
  • Metal (Apple) - shader source only; no dispatcher (see metal_shaders)
  • Vulkan (cross-platform, future)

Modules§

metal_shaders
Metal Shading Language (MSL) compute kernels

Structs§

CudaBackend
CUDA backend (NVIDIA GPUs)
MetalBackend
Metal backend (Apple GPUs) - placeholder
VulkanBackend
Vulkan backend (cross-platform) - placeholder
WgpuBackend
WGPU backend (WebGPU - cross-platform via wgpu crate)

Traits§

Backend
Backend trait for GPU operations

Functions§

detect_backend
Detect best available backend