Crate wgpu::hal

source ·
Expand description

Re-export of our wgpu-hal dependency.

This library describes the internal unsafe graphics abstraction API. It follows WebGPU for the most part, re-using wgpu-types, with the following deviations:

  • Fully unsafe: zero overhead, zero validation.
  • Compile-time backend selection via traits.
  • Objects are passed by references and returned by value. No IDs.
  • Mapping is persistent, with explicit synchronization.
  • Resource transitions are explicit.
  • All layouts are explicit. Binding model has compatibility.

General design direction is to follow the majority by the following weights:

  • wgpu-core: 1.5
  • primary backends (Vulkan/Metal/DX12): 1.0 each
  • secondary backend (GLES): 0.5

Modules

Structs

Enums

Constants

Statics

  • Stores the text of any validation errors that have occurred since the last call to get_and_reset.

Traits

  • Encoder for commands in command buffers. Serves as a parent for all the encoded command buffers. Works in bursts of action: one or more command buffers are recorded, then submitted to a queue, and then it needs to be reset_all().

Type Aliases