mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 15:23:53 +00:00
More aligned type tests
This commit is contained in:
parent
d4daef9150
commit
58255c8603
1 changed files with 14 additions and 0 deletions
|
@ -127,6 +127,19 @@ static int test_ctor()
|
|||
return Error;
|
||||
}
|
||||
|
||||
static int test_aligned_ivec4()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
glm::aligned_ivec4 const v(1, 2, 3, 4);
|
||||
Error += glm::all(glm::equal(v, glm::aligned_ivec4(1, 2, 3, 4))) ? 0 : 1;
|
||||
|
||||
glm::aligned_ivec4 const u = v * 2;
|
||||
Error += glm::all(glm::equal(u, glm::aligned_ivec4(2, 4, 6, 8))) ? 0 : 1;
|
||||
|
||||
return Error;
|
||||
}
|
||||
|
||||
static int test_aligned_mat4()
|
||||
{
|
||||
int Error = 0;
|
||||
|
@ -151,6 +164,7 @@ int main()
|
|||
|
||||
Error += test_ctor();
|
||||
Error += test_copy();
|
||||
Error += test_aligned_ivec4();
|
||||
Error += test_aligned_mat4();
|
||||
|
||||
return Error;
|
||||
|
|
Loading…
Add table
Reference in a new issue