Fix issue #133: Add explicit conversion from C-style Vulkan flags to Vulkan-Hpp flags (#154)

This commit is contained in:
Markus Tavenrath 2017-11-29 14:56:03 +01:00 committed by Andreas Süßenbach
parent 1a32a6c072
commit 4da433e279
2 changed files with 10 additions and 0 deletions

View File

@ -148,6 +148,11 @@ const std::string flagsHeader = R"(
{
}
explicit Flags(MaskType flags)
: m_mask(flags)
{
}
Flags<BitType> & operator=(Flags<BitType> const& rhs)
{
m_mask = rhs.m_mask;

View File

@ -114,6 +114,11 @@ namespace VULKAN_HPP_NAMESPACE
{
}
explicit Flags(MaskType flags)
: m_mask(flags)
{
}
Flags<BitType> & operator=(Flags<BitType> const& rhs)
{
m_mask = rhs.m_mask;