Expose device_information#143
Conversation
We'd like to be able to tell users not to use a software renderer, and to provide more information in the case of failures. Fixes: kvark#142
There was a problem hiding this comment.
Generally speaking, exposing some information about the device is good and helpful.
However, I would very much like to squeeze this information to a form that is useful, as opposed to blindly exposing everything that Vulkan gives us. For example, Vulkan drivers aren't even in agreement about what is considered an integrated GPU and what not. This line is being blurred, and it's not really actionable by the user anyway.
What the user does need to know is if the adapter is emulated in software. That is definitely a strong distinction, where the line isn't blurred. So, we would ideally expose something like this:
struct DeviceInformation {
name: String,
is_software_emulated: bool,
}
|
@kvark 👍 can make that change. I had a few people on the linux channel suggest it would be useful to return the driver info too to help people debug what's happening. Is that information obtainable a different way, or should I keep returning that? |
|
@kvark updated to just return a bool. Kept all three strings, but can simplify if you'd prefer |
| } | ||
|
|
||
| pub fn device_information(&self) -> &crate::DeviceInformation { | ||
| todo!(); |
There was a problem hiding this comment.
Can we return a default implementation instead? Crashing isn't fun for this
|
@ConradIrwin I don't want to merge #144 until we confirm that it helps people. |
We'd like to be able to tell users not to use a software renderer, and to provide more information in the case of failures.
Fixes: #142
I have not yet implemented this on metal, but can do so if this approach seems sound to you.