Fixed compScale test
This commit is contained in:
@@ -104,6 +104,15 @@ namespace compScale
|
||||
Error += A.w == 255 ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::i8vec4 const A = glm::compScale<glm::i8>(glm::vec4(0.0f,-1.0f, 0.5f, 1.0f));
|
||||
|
||||
Error += A.x == 0 ? 0 : 1;
|
||||
Error += A.y == -128 ? 0 : 1;
|
||||
Error += A.z == 63 ? 0 : 1;
|
||||
Error += A.w == 127 ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::u16vec4 const A = glm::compScale<glm::u16>(glm::vec4(0.0f, 0.2f, 0.5f, 1.0f));
|
||||
|
||||
@@ -113,6 +122,15 @@ namespace compScale
|
||||
Error += A.w == 65535 ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::i16vec4 const A = glm::compScale<glm::i16>(glm::vec4(0.0f,-1.0f, 0.5f, 1.0f));
|
||||
|
||||
Error += A.x == 0 ? 0 : 1;
|
||||
Error += A.y == -32768 ? 0 : 1;
|
||||
Error += A.z == 16383 ? 0 : 1;
|
||||
Error += A.w == 32767 ? 0 : 1;
|
||||
}
|
||||
|
||||
return Error;
|
||||
}
|
||||
}// compScale
|
||||
|
||||
Reference in New Issue
Block a user