PacktPublishing / Vulkan-Cookbook

Code repository for Vulkan Cookbook by Packt
MIT License
816 stars 109 forks source link

GetDeviceQueue() in CookbookSampleFramework.cpp line 197 requests GraphicsQueue when should be ComputeQueue #19

Open JoeImplode opened 1 year ago

JoeImplode commented 1 year ago

NOTE: This is not for any particular build, I reckon it's just a typo.

The little snippet of code currently in CookbookSampleFramework.cpp is as follows:

PhysicalDevice = physical_device;
LoadDeviceLevelFunctions( *LogicalDevice, device_extensions );
GetDeviceQueue( *LogicalDevice, GraphicsQueue.FamilyIndex, 0, GraphicsQueue.Handle );
GetDeviceQueue( *LogicalDevice, GraphicsQueue.FamilyIndex, 0, ComputeQueue.Handle );
GetDeviceQueue( *LogicalDevice, PresentQueue.FamilyIndex, 0, PresentQueue.Handle );
break;

I'm assuming that the middle call should not be passing GraphicsQueue.FamilyIndex as the second parameter, as this has already been requested for the first "GetDeviceQueue() call