__retVal.xy = b.xx;
}
+vec2 __constructor(const bvec2 b)
+{
+ __retVal = b;
+}
+
vec2 __constructor(const vec3 v)
{
__retVal.xy = v.xy;
__retVal.xyz = b.xxx;
}
+vec3 __constructor(const bvec3 b)
+{
+ __retVal = b;
+}
+
vec3 __constructor(const vec4 v)
{
__retVal.xyz = v.xyz;
__retVal = b.xxxx;
}
+vec4 __constructor(const bvec4 b)
+{
+ __retVal = b;
+}
+
vec4 __constructor(const vec3 v3, const float f)
{
// XXX this constructor shouldn't be needed anymore
bvec2 __constructor(const vec2 v)
{
- const vec2 zero = vec2(0.0, 0.0);
- __asm vec4_sne __retVal.xy, v, zero;
+ __asm vec4_sne __retVal.xy, v, 0.0;
}
bvec2 __constructor(const ivec2 v)
float invB;
__asm float_rcp invB, b;
__asm vec4_multiply a, a, invB;
- __asm float_to_int __retVal, a;
+ __asm float_to_int a, a;
}
__asm float_rcp inv.x, u.x;
__asm float_rcp inv.y, u.y;
__asm vec4_multiply z, v, inv;
- __asm float_to_int __retVal, z;
+ __asm float_to_int v, z;
}
__asm float_rcp inv.x, u.x;
__asm float_rcp inv.y, u.y;
__asm vec4_multiply z, v, inv;
- __asm float_to_int __retVal, z;
+ __asm float_to_int v, z;
}
__asm float_rcp inv.x, u.x;
__asm float_rcp inv.y, u.y;
__asm vec4_multiply z, v, inv;
- __asm float_to_int __retVal, z;
+ __asm float_to_int v, z;
}
void __operator += (inout float a, const float b)
{
- __asm vec4_add a.x, a.x, b;
+ __asm vec4_add a.x, a.x, b.x;
}
void __operator -= (inout float a, const float b)