Minor cleanup in utils.cpp: remove helper function createDebugUtilsMessengerEXT.

This commit is contained in:
asuessenbach 2022-08-04 08:49:12 +02:00
parent 07ebd7dbaf
commit 2611c34aa5
2 changed files with 1 additions and 6 deletions

View File

@ -39,7 +39,7 @@ int main( int /*argc*/, char ** /*argv*/ )
{
vk::Instance instance = vk::su::createInstance( AppName, EngineName );
#if !defined( NDEBUG )
vk::DebugUtilsMessengerEXT debugUtilsMessenger = vk::su::createDebugUtilsMessengerEXT( instance );
vk::DebugUtilsMessengerEXT debugUtilsMessenger = instance.createDebugUtilsMessengerEXT( vk::su::makeDebugUtilsMessengerCreateInfoEXT() );
#endif
/* VULKAN_HPP_KEY_START */

View File

@ -65,11 +65,6 @@ namespace vk
return device.createCommandPool( commandPoolCreateInfo );
}
vk::DebugUtilsMessengerEXT createDebugUtilsMessengerEXT( vk::Instance const & instance )
{
return instance.createDebugUtilsMessengerEXT( vk::su::makeDebugUtilsMessengerCreateInfoEXT() );
}
vk::DescriptorPool createDescriptorPool( vk::Device const & device, std::vector<vk::DescriptorPoolSize> const & poolSizes )
{
assert( !poolSizes.empty() );