Ralith / openxrs

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

Implement `Default` for sys structs #141

Open Supreeeme opened 1 year ago

Supreeeme commented 1 year ago

It would be nice, if similar to ash, openxr-sys had default implementations for all of the structs, so I can not worry about the structure type and next pointer and whatnot. This would be primarily useful when writing layers. I imagine this being rather tedious to implement though. I'm considering doing it myself, but I thought I'd gather opinions first.

Ralith commented 1 year ago

Might not be too bad, since it should be auto-generated. If it's only useful for layers we should feature-gate it, though.

zmerp commented 1 year ago

It's definitely useful in case we want to write our own wrapper around openxr-sys, or use openxr-sys directly.

Ralith commented 1 year ago

No, that use case is handled by the existing helpers.