Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Default for sys structs #141

Open
Supreeeme opened this issue Nov 14, 2023 · 3 comments
Open

Implement Default for sys structs #141

Supreeeme opened this issue Nov 14, 2023 · 3 comments

Comments

@Supreeeme
Copy link
Contributor

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
Copy link
Owner

Ralith commented Nov 14, 2023

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

@zarik5
Copy link
Contributor

zarik5 commented Nov 14, 2023

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

@Ralith
Copy link
Owner

Ralith commented Nov 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants