Skip to content
Snippets Groups Projects
Commit 58f69e4c authored by Simeon Hermann's avatar Simeon Hermann
Browse files

[#61] exemplary annotated code of what had to be changed to run the app with an Intel HD Grapics

parent dcd31502
No related branches found
No related tags found
1 merge request!46Resolve "Queues-Abfragen anpassen für Intel HD Graphics"
Pipeline #25346 passed
...@@ -25,7 +25,7 @@ int main(int argc, const char** argv) { ...@@ -25,7 +25,7 @@ int main(int argc, const char** argv) {
window, window,
applicationName, applicationName,
VK_MAKE_VERSION(0, 0, 1), 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" } { "VK_KHR_swapchain" }
); );
......
...@@ -55,8 +55,14 @@ namespace vkcv { ...@@ -55,8 +55,14 @@ namespace vkcv {
else if (type == QueueType::Compute) { else if (type == QueueType::Compute) {
return queueManager.getComputeQueues().front(); 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) { 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) { else if (type == QueueType::Present) {
return queueManager.getPresentQueue(); return queueManager.getPresentQueue();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment