Crate wgpu
Structs§
- Automatic graphics API based on OS.
- DirectX 12 graphics API.
- Generic tensor backend that can be compiled just-in-time to any shader runtime
- The basic tensor primitive struct.
- Metal graphics API.
- OpenGL graphics API.
- The values that control how a WGPU Runtime will perform its calculations.
- Vulkan graphics API.
- WebGpu graphics API.
- The memory resource that can be allocated for wgpu.
- Runtime that uses the [wgpu] crate with the wgsl compiler. This is used in the Wgpu backend. For advanced configuration, use [
init_sync
] to pass in runtime options or to select a specific graphics API. - Wgpu compute server.
- A complete setup used to run wgpu.
- Buffer storage for wgpu.
- Wgsl Compiler.
- A floating point type with relaxed precision, minimum
f16
, max [f32
].
Enums§
- High level configuration of memory management.
- The device struct when using the
wgpu
backend.
Traits§
- The element type for booleans for the jit backend.
- The float element type for the jit backend.
- The basic trait to specify which graphics API to use as Backend.
- The int element type for the jit backend.
- The base element trait for the wgpu backend.
Functions§
- Create a
WgpuDevice
on an existingWgpuSetup
. Useful when you want to share a device between CubeCL and other wgpu-dependent libraries. - Like
init_setup_async
, but synchronous. On wasm, it is necessary to useinit_setup_async
instead. - Initialize a client on the given device with the given options. This function is useful to configure the runtime options or to pick a different graphics API.
Type Aliases§
- Tensor backend that uses the wgpu crate for executing GPU compute shaders.