Ralith/openxrs

Derive Hash for enum-like structs

rib opened this issue · 1 comments

rib commented

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.

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