Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename type> struct Vector4 { type x, y, z, w; }
- template <> struct Vector4<Float>
- {
- Vector4<Half> Compress() { return Vector4<Half>(x, y, z, w); }; // Template specializations don't inherit from base template definition
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement