gwiazdorrr / CxxSwizzle

Modern C++ swizzling header-only library
MIT License
186 stars 7 forks source link

If both LHS & RHS are equal swizzle type a full assignment is made #1

Closed Sairony closed 9 years ago

Sairony commented 10 years ago

swizzle::glsl::naive::vector< float, 4 > lhs, rhs( 1.0f, 1.0f, 1.0f, 1.0f ); lhs.xy = rhs.xy; // lhs becomes 1,1,1,1 when expected to be 1,1,0,0

gwiazdorrr commented 9 years ago

This is the intended behaviour.