|
|
@@ -56,7 +56,9 @@ public: |
|
|
|
enum |
|
|
|
{ |
|
|
|
Typevoid = 0, |
|
|
|
#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS |
|
|
|
Typehalf, Typef16vec2, Typef16vec3, Typef16vec4, |
|
|
|
#endif |
|
|
|
Typefloat, Typevec2, Typevec3, Typevec4, |
|
|
|
Typedouble, Typedvec2, Typedvec3, Typedvec4, |
|
|
|
Typeint8_t, Typei8vec2, Typei8vec3, Typei8vec4, |
|
|
@@ -103,7 +105,9 @@ protected: |
|
|
|
static uint8_t GetType(T *x) { UNUSED(x); return Type##T; } |
|
|
|
|
|
|
|
__T(void) |
|
|
|
#if LOL_FEATURE_CXX11_UNRESTRICTED_UNIONS |
|
|
|
__T(half) __T(f16vec2) __T(f16vec3) __T(f16vec4) |
|
|
|
#endif |
|
|
|
__T(float) __T(vec2) __T(vec3) __T(vec4) |
|
|
|
__T(double) __T(dvec2) __T(dvec3) __T(dvec4) |
|
|
|
__T(int8_t) __T(i8vec2) __T(i8vec3) __T(i8vec4) |
|
|
|