Vulkan: Select graphics queue with compute capabilities.
There might be cases that the graphics queue and compute queue are separated, but that would be something that we will solve in the future.
This commit is contained in:
parent
a45a881534
commit
ab3e1809b6
|
@ -520,7 +520,8 @@ static GHOST_TSuccess getGraphicQueueFamily(VkPhysicalDevice device, uint32_t *r
|
|||
|
||||
*r_queue_index = 0;
|
||||
for (const auto &queue_family : queue_families) {
|
||||
if (queue_family.queueFlags & VK_QUEUE_GRAPHICS_BIT) {
|
||||
if ((queue_family.queueFlags & VK_QUEUE_GRAPHICS_BIT) &&
|
||||
(queue_family.queueFlags & VK_QUEUE_COMPUTE_BIT)) {
|
||||
return GHOST_kSuccess;
|
||||
}
|
||||
(*r_queue_index)++;
|
||||
|
|
Loading…
Reference in New Issue