diff --git a/projects/first_mesh/src/main.cpp b/projects/first_mesh/src/main.cpp index 107cd432e1bc902692bb5b1fa694120ddf24038b..480ec2a30f4a44911230ed12baac27021d50b846 100644 --- a/projects/first_mesh/src/main.cpp +++ b/projects/first_mesh/src/main.cpp @@ -25,7 +25,7 @@ int main(int argc, const char** argv) { window, applicationName, VK_MAKE_VERSION(0, 0, 1), - { vk::QueueFlagBits::eTransfer,vk::QueueFlagBits::eGraphics, vk::QueueFlagBits::eCompute }, + { vk::QueueFlagBits::eGraphics }, //at this place I now must remove the other queues for the app to work but probably there is a better way to handle this {}, { "VK_KHR_swapchain" } ); diff --git a/src/vkcv/CommandResources.cpp b/src/vkcv/CommandResources.cpp index 71c990c3c222f2318c2f5744ff6295f667d9e6f8..7a08c366abeafd2af72d433e288124c9aeaefeb7 100644 --- a/src/vkcv/CommandResources.cpp +++ b/src/vkcv/CommandResources.cpp @@ -55,8 +55,14 @@ namespace vkcv { else if (type == QueueType::Compute) { return queueManager.getComputeQueues().front(); } + //example of how the non-existence of queues other than the graphics queue could be handled else if (type == QueueType::Transfer) { - return queueManager.getTransferQueues().front(); + if (queueManager.getTransferQueues().size() == 0) { + return queueManager.getGraphicsQueues().front(); + } + else { + return queueManager.getTransferQueues().front(); + } } else if (type == QueueType::Present) { return queueManager.getPresentQueue();