shared/UtilsVulkan.h
/* Check if the texture is used as a depth buffer */
Check if the texture is used as a depth buffer
Check if the texture is used as a depth buffer
inline bool isDepthFormat(VkFormat fmt) {
	return
		(fmt == VK_FORMAT_D16_UNORM) ||
		(fmt == VK_FORMAT_X8_D24_UNORM_PACK32) ||
		(fmt == VK_FORMAT_D32_SFLOAT) ||
		(fmt == VK_FORMAT_D16_UNORM_S8_UINT) ||
		(fmt == VK_FORMAT_D24_UNORM_S8_UINT) ||
		(fmt == VK_FORMAT_D32_SFLOAT_S8_UINT);
}
inline bool isDepthFormat ( VkFormat fmt ) { return ( fmt == VK_FORMAT_D16_UNORM ) || ( fmt == VK_FORMAT_X8_D24_UNORM_PACK32 ) || ( fmt == VK_FORMAT_D32_SFLOAT ) || ( fmt == VK_FORMAT_D16_UNORM_S8_UINT ) || ( fmt == VK_FORMAT_D24_UNORM_S8_UINT ) || ( fmt == VK_FORMAT_D32_SFLOAT_S8_UINT ) ; }
Check if the texture is used as a depth buffer
Check if the texture is used as a depth buffer