Commit 1f2003a2 by Alexis Hetu Committed by Alexis Hétu

Removed unused classes Vector4i and Vector4u

Change-Id: Ic170d391c2fb487af8c405df15b3bab585f64273 Reviewed-on: https://swiftshader-review.googlesource.com/5470Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 31fc7d36
......@@ -69,92 +69,6 @@ namespace sw
return x;
}
Vector4i::Vector4i()
{
}
Vector4i::Vector4i(int x, int y, int z, int w)
{
this->x = Int4(x);
this->y = Int4(y);
this->z = Int4(z);
this->w = Int4(w);
}
Vector4i::Vector4i(const Vector4i &rhs)
{
x = rhs.x;
y = rhs.y;
z = rhs.z;
w = rhs.w;
}
Vector4i &Vector4i::operator=(const Vector4i &rhs)
{
x = rhs.x;
y = rhs.y;
z = rhs.z;
w = rhs.w;
return *this;
}
Int4 &Vector4i::operator[](int i)
{
switch(i)
{
case 0: return x;
case 1: return y;
case 2: return z;
case 3: return w;
}
return x;
}
Vector4u::Vector4u()
{
}
Vector4u::Vector4u(unsigned int x, unsigned int y, unsigned int z, unsigned int w)
{
this->x = UInt4(x);
this->y = UInt4(y);
this->z = UInt4(z);
this->w = UInt4(w);
}
Vector4u::Vector4u(const Vector4u &rhs)
{
x = rhs.x;
y = rhs.y;
z = rhs.z;
w = rhs.w;
}
Vector4u &Vector4u::operator=(const Vector4u &rhs)
{
x = rhs.x;
y = rhs.y;
z = rhs.z;
w = rhs.w;
return *this;
}
UInt4 &Vector4u::operator[](int i)
{
switch(i)
{
case 0: return x;
case 1: return y;
case 2: return z;
case 3: return w;
}
return x;
}
Vector4f::Vector4f()
{
}
......
......@@ -37,38 +37,6 @@ namespace sw
Short4 w;
};
class Vector4i
{
public:
Vector4i();
Vector4i(int x, int y, int z, int w);
Vector4i(const Vector4i &rhs);
Int4 &operator[](int i);
Vector4i &operator=(const Vector4i &rhs);
Int4 x;
Int4 y;
Int4 z;
Int4 w;
};
class Vector4u
{
public:
Vector4u();
Vector4u(unsigned int x, unsigned int y, unsigned int z, unsigned int w);
Vector4u(const Vector4u &rhs);
UInt4 &operator[](int i);
Vector4u &operator=(const Vector4u &rhs);
UInt4 x;
UInt4 y;
UInt4 z;
UInt4 w;
};
class Vector4f
{
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment