PacktPublishing / Mastering-Graphics-Programming-with-Vulkan

MIT License
514 stars 65 forks source link

Update gpu_device.cpp #20

Closed sjbaines closed 1 year ago

sjbaines commented 1 year ago

In systems with multiple discrete or integrated GPUS, ensures that the FIRST device is selected. Fixes #19 for chapter 4. Similar changes need to be applied to all later chapters.

sjbaines commented 1 year ago

I've added another commit which fixes this issue more thoroughly for Chapter 15. My Chapter 4 changes simply ensure that if there are multiple discrete devices then the first is chosen. My Chapter 15 changes are more substantial, and select the first device that is compatible with the display surface.

theWatchmen commented 1 year ago

Closing this pull request as we have provided a similar implementation in chapter 1.