Ralith / openxrs

OpenXR bindings for Rust
Apache License 2.0
282 stars 59 forks source link

Derive Hash for enum-like structs #121

Open rib opened 2 years ago

rib commented 2 years ago

It could be convenient if most of the structs for enum-like constants, such as EnvironmentBlendMode implemented Hash.

While experimenting, I initially went to put the supported blend modes in a HashSet with the intention to check (on-the-fly) if an app was able to switch between opaque vs pass-through rendering. Easy enough to workaround but still it could be convenient.

Ralith commented 2 years ago

I'd be happy to merge a PR for this.