Expand description
We need to impl PartialEq
, Eq
, PartialOrd
, Ord
, and Hash
for all handle types in wgpu.
For types that have some already-unique property, we can use that property to implement these traits.
For types (like WebGPU) that don’t have such a property, we generate an identifier and use that.
Macros§
- impl_
eq_ 🔒ord_ hash_ arc_ address - Implements
PartialEq
,Eq
,PartialOrd
,Ord
, andHash
for a type by comparing the addresses of theArc
s. - impl_
eq_ 🔒ord_ hash_ proxy - Implements
PartialEq
,Eq
,PartialOrd
,Ord
, andHash
for a type by proxying the operations to a single field.
Structs§
- Atomic
U64 supports_64bit_atomics
- An integer type which can be safely shared between threads.
- Identifier
Statics§
- NEXT_ID 🔒