Constant wgpu_core::hub::ACTIVE_TOKEN

source ·
const ACTIVE_TOKEN: LocalKey<Cell<u8>>;
Expand description

Per-thread state checking Token<Root> creation in debug builds.

This is the number of Token values alive on the current thread. Since Token creation respects the Access graph, there can never be more tokens alive than there are fields of Hub, so a u8 is plenty.