Lines Matching defs:setUniform
1145 #define MAKE_SET_VEC_UNIFORM(VECTYPE, SETUNIFORM) \
1146 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE& vec) \
1149 SETUNIFORM(loc, 1, vec.getPtr()); \
1152 struct SetUniform##VECTYPE##Dummy_s { int unused; }
1154 #define MAKE_SET_VEC_UNIFORM_PTR(VECTYPE, SETUNIFORM) \
1155 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE* vec, int arraySize) \
1158 SETUNIFORM(loc, arraySize, vec->getPtr()); \
1167 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, float value)
1174 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, int value)
1181 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const float* value, int arraySize)
1218 setUniform(gl, programID, "s.a", constCoords.x());
1219 setUniform(gl, programID, "s.b", constCoords.swizzle(1, 2, 3));
1220 setUniform(gl, programID, "s.c", 1);
1249 setUniform(gl, programID, "s.a", constCoords.x());
1250 setUniform(gl, programID, "s.b.a", 0);
1251 setUniform(gl, programID, "s.b.b", constCoords.swizzle(1,2));
1252 setUniform(gl, programID, "s.c", 1);
1276 setUniform(gl, programID, "s.a", constCoords.w());
1277 setUniform(gl, programID, "s.c", 1);
1283 setUniform(gl, programID, "s.b", b, DE_LENGTH_OF_ARRAY(b));
1309 setUniform(gl, programID, "s.a", constCoords.w());
1310 setUniform(gl, programID, "s.c", 1);
1316 setUniform(gl, programID, "s.b", b, DE_LENGTH_OF_ARRAY(b));
1341 setUniform(gl, programID, "s[0].a", constCoords.x());
1342 setUniform(gl, programID, "s[0].b", 0);
1343 setUniform(gl, programID, "s[1].a", constCoords.y());
1344 setUniform(gl, programID, "s[1].b", 1);
1345 setUniform(gl, programID, "s[2].a", constCoords.z());
1346 setUniform(gl, programID, "s[2].b", 2);
1371 setUniform(gl, programID, "s[0].a", constCoords.x());
1372 setUniform(gl, programID, "s[0].b", 0);
1373 setUniform(gl, programID, "s[1].a", constCoords.y());
1374 setUniform(gl, programID, "s[1].b", 1);
1375 setUniform(gl, programID, "s[2].a", constCoords.z());
1376 setUniform(gl, programID, "s[2].b", 2);
1408 setUniform(gl, programID, "s[0].a", constCoords.x());
1411 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1412 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1415 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1416 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1419 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1420 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1421 setUniform(gl, programID, "s[0].c", 0);
1423 setUniform(gl, programID, "s[1].a", constCoords.w());
1426 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1427 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1430 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1431 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1434 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1435 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1436 setUniform(gl, programID, "s[1].c", 1);
1472 setUniform(gl, programID, "s[0].a", constCoords.x());
1475 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1476 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1479 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1480 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1483 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1484 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1485 setUniform(gl, programID, "s[0].c", 0);
1487 setUniform(gl, programID, "s[1].a", constCoords.w());
1490 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1491 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1494 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1495 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1498 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1499 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1500 setUniform(gl, programID, "s[1].c", 1);
1532 setUniform(gl, programID, "s[0].a", constCoords.x());
1533 setUniform(gl, programID, "s[0].b", 0);
1534 setUniform(gl, programID, "s[1].a", constCoords.y());
1535 setUniform(gl, programID, "s[1].b", -1);
1536 setUniform(gl, programID, "s[2].a", constCoords.z());
1537 setUniform(gl, programID, "s[2].b", 2);
1590 setUniform(gl, programID, "s[0].a", constCoords.x());
1593 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1594 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1597 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1598 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1601 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1602 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1603 setUniform(gl, programID, "s[0].c", 0);
1605 setUniform(gl, programID, "s[1].a", constCoords.w());
1608 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1609 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1612 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1613 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1616 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1617 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1618 setUniform(gl, programID, "s[1].c", 1);
1651 setUniform(gl, programID, "s[0].a", constCoords.x());
1652 setUniform(gl, programID, "s[0].b", 0);
1653 setUniform(gl, programID, "s[1].a", constCoords.y());
1654 setUniform(gl, programID, "s[1].b", -1);
1655 setUniform(gl, programID, "s[2].a", constCoords.z());
1656 setUniform(gl, programID, "s[2].b", 2);
1710 setUniform(gl, programID, "s[0].a", constCoords.x());
1713 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1714 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1717 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1718 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1721 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1722 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1723 setUniform(gl, programID, "s[0].c", 0);
1725 setUniform(gl, programID, "s[1].a", constCoords.w());
1728 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1729 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1732 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1733 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1736 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1737 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1738 setUniform(gl, programID, "s[1].c", 1);
1763 setUniform(gl, programID, "s.a", 1.0f);
1764 setUniform(gl, programID, "s.b", tcu::Vec3(0.25f, 0.25f, 0.5f));
1765 setUniform(gl, programID, "s.c", 0);
1795 setUniform(gl, programID, "s.a", 0.5f);
1796 setUniform(gl, programID, "s.b.a", 0);
1797 setUniform(gl, programID, "s.b.b", tcu::Vec2(0.25f, 0.25f));
1798 setUniform(gl, programID, "s.c", 1);
1823 setUniform(gl, programID, "s[0].a", 1.0f);
1824 setUniform(gl, programID, "s[0].b", tcu::Vec3(0.25f, 0.25f, 0.25f));
1825 setUniform(gl, programID, "s[0].c", 1);
1826 setUniform(gl, programID, "s[1].a", 0.0f);
1827 setUniform(gl, programID, "s[1].b", tcu::Vec3(0.5f, 0.5f, 0.5f));
1828 setUniform(gl, programID, "s[1].c", 0);
1860 setUniform(gl, programID, "a.a", 1.0f);
1861 setUniform(gl, programID, "a.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1862 setUniform(gl, programID, "a.c", 2);
1863 setUniform(gl, programID, "b.a", 1.0f);
1864 setUniform(gl, programID, "b.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1865 setUniform(gl, programID, "b.c", 2);
1866 setUniform(gl, programID, "c.a", 1.0f);
1867 setUniform(gl, programID, "c.b", tcu::Vec3(0.0f, 1.1f, 2.0f));
1868 setUniform(gl, programID, "c.c", 2);
1902 setUniform(gl, programID, "a.a", 1.0f);
1903 setUniform(gl, programID, "a.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1904 setUniform(gl, programID, "a.c", 2);
1905 setUniform(gl, programID, "b.a", 1.0f);
1906 setUniform(gl, programID, "b.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1907 setUniform(gl, programID, "b.c", 2);
1908 setUniform(gl, programID, "c.a", 1.0f);
1909 setUniform(gl, programID, "c.b", tcu::Vec3(0.0f, 1.1f, 2.0f));
1910 setUniform(gl, programID, "c.c", 2);