Use generated enumeration for sType in struct constructor, instead of generating that value out of the structure's name

- Fixes issues on IOS and MacOS platform
- Added some checks on vendorids, tags, and some types.
This commit is contained in:
Andreas Süßenbach
2017-11-29 10:09:32 +01:00
committed by Markus Tavenrath
parent 6e12cceb37
commit 509a3df5bb
2 changed files with 210 additions and 83 deletions

View File

@@ -12510,7 +12510,7 @@ namespace VULKAN_HPP_NAMESPACE
struct IOSSurfaceCreateInfoMVK
{
IOSSurfaceCreateInfoMVK( IOSSurfaceCreateFlagsMVK flags_ = IOSSurfaceCreateFlagsMVK(), const void* pView_ = nullptr )
: sType( StructureType::eIOSSurfaceCreateInfoMVK )
: sType( StructureType::eIosSurfaceCreateInfoMVK )
, pNext( nullptr )
, flags( flags_ )
, pView( pView_ )
@@ -12578,7 +12578,7 @@ namespace VULKAN_HPP_NAMESPACE
struct MacOSSurfaceCreateInfoMVK
{
MacOSSurfaceCreateInfoMVK( MacOSSurfaceCreateFlagsMVK flags_ = MacOSSurfaceCreateFlagsMVK(), const void* pView_ = nullptr )
: sType( StructureType::eMacOSSurfaceCreateInfoMVK )
: sType( StructureType::eMacosSurfaceCreateInfoMVK )
, pNext( nullptr )
, flags( flags_ )
, pView( pView_ )