bit-hack / tack

Tack - The vector wrapper
0 stars 0 forks source link

Add swizzle, blending and lane extraction. #7

Closed bit-hack closed 8 years ago

bit-hack commented 8 years ago

This PR adds vector swizzling by passing a permutation enum as a template parameter. The 256 swizzle permutations were generated via a python script. Also included in this PR is a wrapper for the blend intrinsic, using a similar mechanism. Lastly a method to extract vector elements has been included, again using an enumeration. Very basic smoke tests have been added for each feature.