Skip to main content

Module gpu

Module gpu 

Source
Expand description

GPU compute infrastructure.

Uses wgpu for cross-platform GPU acceleration (Metal, Vulkan, DX12). Provides device initialization and shader constants for grammar mask and field arithmetic.

Functionsยง

try_create_device
Try to create a wgpu device and queue. Returns None if no GPU adapter is available.