-
Notifications
You must be signed in to change notification settings - Fork 984
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
Return custom AdapterInfo
that contains backend.
#475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
I think we should try to completely remove gfx-hal types from the API surface and therefore have our own enum DeviceType
that we return in that struct.
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
bors r+ |
475: Return custom `AdapterInfo` that contains backend. r=kvark a=daxpedda When requesting an `Adapter` in combination with `BackendBit::all()`, there was no way to determine what backend was ultimately chosen. This change implements a custom `AdapterInfo` that contains a field with `Backend`, it does otherwise not differ from `gfx_hal::adapter::AdapterInfo`. The only question I have is about `serde` implementation, currently I can't derive de/serialization from it because of `DeviceType`. This could be fixed by activating the `serde` feature in `gfx-hal`, which isn't possible (as far as i know) without renaming our current `serde` feature. Co-authored-by: daxpedda <[email protected]>
Build succeeded |
475: Made RenderBundleEncoder derive Debug r=kvark a=Andful This is a continuation of the pull request gfx-rs#466 and should resolve the issue gfx-rs#458. Co-authored-by: Andrea Nardi <[email protected]>
When requesting an
Adapter
in combination withBackendBit::all()
, there was no way to determine what backend was ultimately chosen.This change implements a custom
AdapterInfo
that contains a field withBackend
, it does otherwise not differ fromgfx_hal::adapter::AdapterInfo
.The only question I have is about
serde
implementation, currently I can't derive de/serialization from it because ofDeviceType
. This could be fixed by activating theserde
feature ingfx-hal
, which isn't possible (as far as i know) without renaming our currentserde
feature.