From d95d5c89915dcce189eed8c7fc92fa6dd46b6b5e Mon Sep 17 00:00:00 2001 From: saschawillems Date: Mon, 3 Oct 2016 11:00:18 +0200 Subject: [PATCH] Option for dedicated transfer queue upon device creation --- base/vulkandevice.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/vulkandevice.hpp b/base/vulkandevice.hpp index 58f86738..912f4a09 100644 --- a/base/vulkandevice.hpp +++ b/base/vulkandevice.hpp @@ -212,7 +212,7 @@ namespace vk std::vector queueCreateInfos{}; - // Get queue family indices for graphics and compute + // Get queue family indices for the requested queue family types // Note that the indices may overlap depending on the implementation const float defaultQueuePriority(0.0f); @@ -263,7 +263,7 @@ namespace vk // If compute family index differs, we need an additional queue create info for the compute queue VkDeviceQueueCreateInfo queueInfo{}; queueInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; - queueInfo.queueFamilyIndex = queueFamilyIndices.compute; + queueInfo.queueFamilyIndex = queueFamilyIndices.transfer; queueInfo.queueCount = 1; queueInfo.pQueuePriorities = &defaultQueuePriority; queueCreateInfos.push_back(queueInfo);