Introduced default for last argument of functions when that argument is a Flag whose corresponding FlagBits has no values.

Currently, it's just Device::mapMemory() and Device::resetDescriptorPool()
This commit is contained in:
Andreas Süßenbach
2016-06-20 11:15:07 +02:00
parent 3c045ecaa7
commit 400c51216f
2 changed files with 32 additions and 15 deletions

View File

@@ -13137,7 +13137,7 @@ namespace vk
#endif /*!VKCPP_DISABLE_ENHANCED_MODE*/
#ifndef VKCPP_DISABLE_ENHANCED_MODE
ResultValueType<void*>::type mapMemory( DeviceMemory memory, DeviceSize offset, DeviceSize size, MemoryMapFlags flags ) const
ResultValueType<void*>::type mapMemory( DeviceMemory memory, DeviceSize offset, DeviceSize size, MemoryMapFlags flags = MemoryMapFlags() ) const
{
void* pData;
Result result = static_cast<Result>( vkMapMemory( m_device, static_cast<VkDeviceMemory>( memory ), offset, size, static_cast<VkMemoryMapFlags>( flags ), &pData ) );
@@ -13837,7 +13837,7 @@ namespace vk
#endif /*!VKCPP_DISABLE_ENHANCED_MODE*/
#ifndef VKCPP_DISABLE_ENHANCED_MODE
ResultValueType<void>::type resetDescriptorPool( DescriptorPool descriptorPool, DescriptorPoolResetFlags flags ) const
ResultValueType<void>::type resetDescriptorPool( DescriptorPool descriptorPool, DescriptorPoolResetFlags flags = DescriptorPoolResetFlags() ) const
{
Result result = static_cast<Result>( vkResetDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), static_cast<VkDescriptorPoolResetFlags>( flags ) ) );
return createResultValue( result, "vk::Device::resetDescriptorPool" );