Depth format selection function in vkTools namespace. #11 #13

This commit is contained in:
saschawillems 2016-02-18 21:44:26 +01:00
parent 1647082260
commit f5919fc988
3 changed files with 33 additions and 18 deletions

View file

@ -37,6 +37,10 @@ namespace vkTools
VkBool32 checkDeviceExtensionPresent(VkPhysicalDevice physicalDevice, const char* extensionName);
// Return string representation of a vulkan error string
std::string errorString(VkResult errorCode);
// Selected a suitable supported depth format starting with 32 bit down to 16 bit
// Returns false if none of the depth formats in the list is supported by the device
VkBool32 getSupportedDepthFormat(VkPhysicalDevice physicalDevice, VkFormat *depthFormat);
// Put an image memory barrier for setting an image layout into the given command buffer
void setImageLayout(