Daxa icon indicating copy to clipboard operation
Daxa copied to clipboard

Device Creation

Open Ipotrick opened this issue 11 months ago • 4 comments

Device creation has problems:

  • there is no way to read physical device properties and choose without the callback to create a device
  • there are no/ poor errors for device creation failure

My idea would be to remove the device selector in device creation. Instead make it a free function that takes a physical device list from the daxa instance.

It might also be nice if device creation wouldnt fail when a feature is not present and instead make it the user responsibility to check if a created device can actually do what is asked of it. This might be misleading but also more convenient to program.

Ipotrick avatar Mar 27 '24 19:03 Ipotrick

A scenario i had encountered was mesh shading support. Many times the features used are a hard requirement and then the current daxa device creation is fine. But when one wants to have a fallback path (for example a for mesh shading) then its hard/impossible to do that with current daxa device creation.

Ipotrick avatar Mar 27 '24 20:03 Ipotrick

There is also the point that some devices dont support daxa at all. In that case we should emit a good error message, collecting all the features/properties missing for that device.

Ipotrick avatar Mar 31 '24 01:03 Ipotrick

I also have the need to create a device based on its id (no other way to associate a device with a specific desktop on windows), which I've gone ahead and added here since it was a blocker when I was evaluating this lib.

loopunit avatar Apr 02 '24 07:04 loopunit

Thanks for pointing that out @loopunit. I will take that into consideration for the new device selection.

Ipotrick avatar Apr 02 '24 17:04 Ipotrick

Device creation is redone in 3.1

Ipotrick avatar Aug 16 '24 22:08 Ipotrick