Merge pull request #1379 from asuessenbach/cleanup

Minor cleanup in utils.cpp: remove helper function createDebugUtilsMessengerEXT.
This commit is contained in:
Andreas Süßenbach 2022-08-04 10:27:21 +02:00 committed by GitHub
commit dc88f1812c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ); vk::Instance instance = vk::su::createInstance( AppName, EngineName );
#if !defined( NDEBUG ) #if !defined( NDEBUG )
vk::DebugUtilsMessengerEXT debugUtilsMessenger = vk::su::createDebugUtilsMessengerEXT( instance ); vk::DebugUtilsMessengerEXT debugUtilsMessenger = instance.createDebugUtilsMessengerEXT( vk::su::makeDebugUtilsMessengerCreateInfoEXT() );
#endif #endif
/* VULKAN_HPP_KEY_START */ /* VULKAN_HPP_KEY_START */

View File

@ -65,11 +65,6 @@ namespace vk
return device.createCommandPool( commandPoolCreateInfo ); 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 ) vk::DescriptorPool createDescriptorPool( vk::Device const & device, std::vector<vk::DescriptorPoolSize> const & poolSizes )
{ {
assert( !poolSizes.empty() ); assert( !poolSizes.empty() );