mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01: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.