mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1379 from asuessenbach/cleanup
Minor cleanup in utils.cpp: remove helper function createDebugUtilsMessengerEXT.
This commit is contained in:
commit
dc88f1812c
@ -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 */
|
||||||
|
@ -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() );
|
||||||
|
Loading…
Reference in New Issue
Block a user