mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Define a new type, `NonMaxU32`, that can represent any `u32` value except `u32::MAX`, defined such that `Option<NonMaxU32>` is still a 32-bit value. Change `Handle` to use `NonMaxU32`. Adjust all code that works directly with handle indices to assume zero-based indices, not one-based indices.