Re-exports§
pub use wgpu;
Structs§
- Auto
Graphics Api - Automatic graphics API based on OS.
- Dx12
- DirectX 12 graphics API.
- Metal
- Metal graphics API.
- OpenGl
- OpenGL graphics API.
- Runtime
Options - The values that control how a WGPU Runtime will perform its calculations.
- Vulkan
- Vulkan graphics API.
- WebGpu
WebGpugraphics API.- Wgpu
Compiled Kernel - What a launch needs from a compiled kernel, loaded on the device.
- Wgpu
Device - The device struct when using the
wgpubackend. - Wgpu
Memory - The memory that can be allocated for wgpu.
- Wgpu
Resource - The memory resource that can be allocated for wgpu.
- Wgpu
Runtime - Runtime that uses the wgpu crate.
- Wgpu
Server - Wgpu compute server.
- Wgpu
Setup - A complete setup used to run wgpu.
- Wgpu
Storage - Buffer storage for wgpu.
- Wgsl
Compiler - Wgsl Compiler.
Enums§
- Auto
Compiler - Compiler that dispatches to the most appropriate shader language backend for the active
wgpubackend. - Auto
Representation - Owned compiled kernel representation matching the variants of
AutoCompiler. - Auto
Representation Ref - Borrowed counterpart of
AutoRepresentation, useful when only read access is needed. - Backend
- Backends supported by wgpu.
- Compiler
Info - Compiler kind and info used when compiling a specific kernel. Used to determine parameter passing strategies.
- Memory
Configuration - High level configuration of memory management.
- Params
Transfer - Wgpu
Backend - The graphics API a
WgpuDevicecomes up on, which also settles the shader compiler it is fed: SPIR-V on Vulkan, MSL on Metal, WGSL elsewhere. - Wgpu
Compiler Init Error - An explicitly selected wgpu compiler cannot serve the selected graphics backend or device.
- Wgpu
Device Kind - Which of a machine’s wgpu devices, leaving the graphics API aside.
- Wgpu
Init Error - A recoverable failure while acquiring or registering a wgpu runtime.
Traits§
- Graphics
Api - The basic trait to specify which graphics API to use as Backend.
- Wgpu
Compiler - Extension trait implemented by every compiler usable with the
wgpuruntime.
Functions§
- init_
device - Create a
WgpuDeviceon an existingWgpuSetup. Useful when you want to share a device betweenCubeCLand other wgpu-dependent libraries. - init_
device_ with_ api - Import a setup with an explicitly selected graphics API.
- init_
setup - Like
init_setup_async, but synchronous. On wasm, it is necessary to useinit_setup_asyncinstead. - 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.
- try_
init_ device - Register an existing setup without changing its enabled GPU capabilities.
- try_
init_ device_ with_ api - Register an existing setup with an explicitly selected graphics API.
- try_
init_ setup - Fallible synchronous initialization. Use
try_init_setup_asyncon wasm. - try_
init_ setup_ async - Initialize the selected runtime, returning acquisition or registration failures.