Option for dedicated transfer queue upon device creation
This commit is contained in:
parent
90315fb783
commit
d95d5c8991
1 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ namespace vk
|
||||||
|
|
||||||
std::vector<VkDeviceQueueCreateInfo> queueCreateInfos{};
|
std::vector<VkDeviceQueueCreateInfo> 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
|
// Note that the indices may overlap depending on the implementation
|
||||||
|
|
||||||
const float defaultQueuePriority(0.0f);
|
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
|
// If compute family index differs, we need an additional queue create info for the compute queue
|
||||||
VkDeviceQueueCreateInfo queueInfo{};
|
VkDeviceQueueCreateInfo queueInfo{};
|
||||||
queueInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
|
queueInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
|
||||||
queueInfo.queueFamilyIndex = queueFamilyIndices.compute;
|
queueInfo.queueFamilyIndex = queueFamilyIndices.transfer;
|
||||||
queueInfo.queueCount = 1;
|
queueInfo.queueCount = 1;
|
||||||
queueInfo.pQueuePriorities = &defaultQueuePriority;
|
queueInfo.pQueuePriorities = &defaultQueuePriority;
|
||||||
queueCreateInfos.push_back(queueInfo);
|
queueCreateInfos.push_back(queueInfo);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue