This library safely implements WebGPU on native platforms. It is designed for integration into browsers, as well as wrapping into other language-specific user-friendly libraries.
Allocating resource ids, and tracking the resources they refer to.
Lazy initialization of texture and buffer memory.
Resource State and Lifetime Trackers
Define an exported macro named
$publicthat expands to an expression if the feature
$featureis enabled, or to a panic otherwise.
Information needed to decide when it’s safe to free some wgpu-core resource.
Reference count object that tracks multiple references. Unlike
RefCount, it’s manually inc()/dec() called.
Reference count object that is 1:1 with each reference.