Use Vulkan result check macro, removed unused functionality from tools and base class
This commit is contained in:
parent
a85dca7a15
commit
75a6f46c4a
10 changed files with 52 additions and 63 deletions
|
|
@ -79,17 +79,6 @@ namespace vkTools
|
|||
}
|
||||
}
|
||||
|
||||
VkResult checkResult(VkResult result)
|
||||
{
|
||||
if (result != VK_SUCCESS)
|
||||
{
|
||||
std::string errorMsg = "Fatal : VkResult returned " + errorString(result) + "!";
|
||||
std::cout << errorMsg << std::endl;
|
||||
assert(result == VK_SUCCESS);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
VkBool32 getSupportedDepthFormat(VkPhysicalDevice physicalDevice, VkFormat *depthFormat)
|
||||
{
|
||||
// Since all depth formats may be optional, we need to find a suitable depth format to use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue