Skip to content
Snippets Groups Projects
Commit 4f971804 authored by Philip Trettner's avatar Philip Trettner
Browse files

added color4 test

parent 58c42b9d
No related branches found
No related tags found
No related merge requests found
glow @ b8e35932
Subproject commit 7bdd20e13f1dc1d824a339d3fb4eba1e2dc8dd4b
Subproject commit b8e3593231651b03257456ed820e624e04bde003
glow-extras @ a206c554
Subproject commit 65a7989156d719fb592c3291d08b8b6f2c657763
Subproject commit a206c554b84fce0db8bd0085590ef756d2f43fe8
......@@ -32,6 +32,7 @@ TEST_CASE("glow uniform interface")
uniform uvec3 uUVec3;
uniform float uFloatCArray[4];
uniform vec3 uDir3;
uniform vec4 uColor4;
void main()
{
......@@ -71,6 +72,7 @@ TEST_CASE("glow uniform interface")
data[i++] = uFloatCArray[2];
data[i++] = uFloatCArray[3];
data[i++] = uDir3[0];
data[i++] = uColor4[0];
}
)");
auto prog = glow::Program::create(csh);
......@@ -123,6 +125,8 @@ TEST_CASE("glow uniform interface")
shader["uDir3"] = tg::dir3::pos_x;
shader["uColor4"] = tg::color4::red;
shader.compute(1);
}
......@@ -177,5 +181,7 @@ TEST_CASE("glow uniform interface")
CHECK(data[i++] == 7);
// uDir3
CHECK(data[i++] == 1);
// uColor4
CHECK(data[i++] == 1);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment