Skip to content

Commit

Permalink
Added identation
Browse files Browse the repository at this point in the history
  • Loading branch information
unexploredtest committed Apr 12, 2021
1 parent 429f3aa commit 71498b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,17 +294,17 @@ Manager::createDevice(const std::vector<uint32_t>& familyQueueIndices,

// This means there are no devices at all
if (deviceCount == 0) {
throw std::runtime_error("Failed to find GPUs with Vulkan support! "
"Maybe you haven't installed vulkan drivers?");
throw std::runtime_error("Failed to find GPUs with Vulkan support! "
"Maybe you haven't installed vulkan drivers?");
}

// This means that we're exceeding our device limit, for
// example if we have 2 devices, just physicalDeviceIndex
// 0 and 1 are acceptable. Hence, physicalDeviceIndex should
// always be less than deviceCount, else we raise an error
if ( !(deviceCount > physicalDeviceIndex) ) {
throw std::runtime_error("There is no such physical index or device, "
"please use your existing device");
throw std::runtime_error("There is no such physical index or device, "
"please use your existing device");
}

std::vector<vk::PhysicalDevice> physicalDevices =
Expand Down

0 comments on commit 71498b2

Please sign in to comment.