Crate cubecl_wgpu

Source

Structs§

AutoGraphicsApi
Automatic graphics API based on OS.
Dx12
DirectX 12 graphics API.
Metal
Metal graphics API.
OpenGl
OpenGL graphics API.
RuntimeOptions
The values that control how a WGPU Runtime will perform its calculations.
Vulkan
Vulkan graphics API.
WebGpu
WebGpu graphics API.
WgpuResource
The memory resource that can be allocated for wgpu.
WgpuRuntime
Runtime that uses the wgpu crate with the wgsl compiler. This is used in the Wgpu backend. For advanced configuration, use init_setup to pass in runtime options or to select a specific graphics API.
WgpuServer
Wgpu compute server.
WgpuSetup
A complete setup used to run wgpu.
WgpuStorage
Buffer storage for wgpu.
WgslCompiler
Wgsl Compiler.

Enums§

AutoCompiler
AutoRepresentation
MemoryConfiguration
High level configuration of memory management.
WgpuDevice
The device struct when using the wgpu backend.

Traits§

FloatElement
The float element type for the wgpu backend.
GraphicsApi
The basic trait to specify which graphics API to use as Backend.
IntElement
The int element type for the wgpu backend.
WgpuElement
The base element trait for the wgpu backend.

Functions§

init_device
Create a WgpuDevice on an existing WgpuSetup. Useful when you want to share a device between CubeCL and other wgpu-dependent libraries.
init_setup
Like init_setup_async, but synchronous. On wasm, it is necessary to use init_setup_async instead.
init_setup_async
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.