replace memcpy in generated copy and assignment operators of VkStructures by reinterpreted assignments. (#348)

Fixes #342
This commit is contained in:
Andreas Süßenbach 2019-06-25 09:43:54 +02:00 committed by Markus Tavenrath
parent 837a5d6a23
commit 89a56017a8
2 changed files with 676 additions and 676 deletions

View File

@ -3765,12 +3765,12 @@ ${initializers} {${copyOps}}
${subStructConstructor}
${name}( Vk${name} const & rhs )
{
memcpy( this, &rhs, sizeof( ${name} ) );
*reinterpret_cast<Vk${name}*>(this) = rhs;
}
${name}& operator=( Vk${name} const & rhs )
{
memcpy( this, &rhs, sizeof( ${name} ) );
*reinterpret_cast<Vk${name}*>(this) = rhs;
return *this;
}
)";

File diff suppressed because it is too large Load Diff