Vulkan-Tutorial icon indicating copy to clipboard operation
Vulkan-Tutorial copied to clipboard

Rework the device selection part of the tutorial

Open SaschaWillems opened this issue 2 years ago • 3 comments

Right now it does some "sustainability" check that doesn't really make sense. It prefers devices with geometry shader support (though it's nowhere used in the tutorial) and calculates some score based on min. 2D image size.

See https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Physical_devices_and_queue_families#page_Base-device-suitability-checks

That's very misleading and many people just copy it . For something like a tutorial it would be best to just have the user select the device from a list of available devices.

Note: Copied from the old repo's project board

SaschaWillems avatar Sep 08 '23 10:09 SaschaWillems

We really should redo this. This often comes up on Discord as people think calculating a score like shown in the tutorial is a good idea, leading to lots of confusion.

SaschaWillems avatar Oct 23 '24 18:10 SaschaWillems

@SaschaWillems Do you still think this is a problem? It still uses a scoring system but also selects GPUs that have geometry shader capabilities. Maybe a console-based device selection would be useful. I could work on it if you like me too.

johannes-el avatar Oct 05 '25 14:10 johannes-el

I'm not a fan of auto-selecting GPUs and would rather have an explicit selection. But we'll have to discuss this internally first before we make a decision.

SaschaWillems avatar Oct 05 '25 14:10 SaschaWillems