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
Branches
Tags
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) {
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" }
);
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment