Home | History | Annotate | Download | only in functional

Lines Matching refs:programID

61 typedef void (*SetupUniformsFunc) (const glw::Functions& gl, deUint32 programID, const tcu::Vec4& constCoords);
72 virtual void setupUniforms (int programID, const tcu::Vec4& constCoords);
144 void ShaderStructCase::setupUniforms (int programID, const tcu::Vec4& constCoords)
146 ShaderRenderCase::setupUniforms(programID, constCoords);
148 m_setupUniforms(m_renderCtx.getFunctions(), programID, constCoords);
1172 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE& vec) \
1174 int loc = gl.getUniformLocation(programID, name); \
1181 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE* vec, int arraySize) \
1183 int loc = gl.getUniformLocation(programID, name); \
1193 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, float value)
1195 int loc = gl.getUniformLocation(programID, name);
1200 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, int value)
1202 int loc = gl.getUniformLocation(programID, name);
1207 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const float* value, int arraySize)
1209 int loc = gl.getUniformLocation(programID, name);
1220 struct SetUniforms_##NAME { static void setUniforms (const glw::Functions& gl, deUint32 programID, const tcu::Vec4& constCoords) SET_UNIFORMS_BODY }; \
1244 setUniform(gl, programID, "s.a", constCoords.x());
1245 setUniform(gl, programID, "s.b", constCoords.swizzle(1, 2, 3));
1246 setUniform(gl, programID, "s.c", 1);
1275 setUniform(gl, programID, "s.a", constCoords.x());
1276 setUniform(gl, programID, "s.b.a", 0);
1277 setUniform(gl, programID, "s.b.b", constCoords.swizzle(1,2));
1278 setUniform(gl, programID, "s.c", 1);
1302 setUniform(gl, programID, "s.a", constCoords.w());
1303 setUniform(gl, programID, "s.c", 1);
1309 setUniform(gl, programID, "s.b", b, DE_LENGTH_OF_ARRAY(b));
1335 setUniform(gl, programID, "s.a", constCoords.w());
1336 setUniform(gl, programID, "s.c", 1);
1342 setUniform(gl, programID, "s.b", b, DE_LENGTH_OF_ARRAY(b));
1367 setUniform(gl, programID, "s[0].a", constCoords.x());
1368 setUniform(gl, programID, "s[0].b", 0);
1369 setUniform(gl, programID, "s[1].a", constCoords.y());
1370 setUniform(gl, programID, "s[1].b", 1);
1371 setUniform(gl, programID, "s[2].a", constCoords.z());
1372 setUniform(gl, programID, "s[2].b", 2);
1397 setUniform(gl, programID, "s[0].a", constCoords.x());
1398 setUniform(gl, programID, "s[0].b", 0);
1399 setUniform(gl, programID, "s[1].a", constCoords.y());
1400 setUniform(gl, programID, "s[1].b", 1);
1401 setUniform(gl, programID, "s[2].a", constCoords.z());
1402 setUniform(gl, programID, "s[2].b", 2);
1434 setUniform(gl, programID, "s[0].a", constCoords.x());
1437 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1438 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1441 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1442 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1445 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1446 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1447 setUniform(gl, programID, "s[0].c", 0);
1449 setUniform(gl, programID, "s[1].a", constCoords.w());
1452 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1453 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1456 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1457 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1460 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1461 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1462 setUniform(gl, programID, "s[1].c", 1);
1498 setUniform(gl, programID, "s[0].a", constCoords.x());
1501 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1502 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1505 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1506 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1509 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1510 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1511 setUniform(gl, programID, "s[0].c", 0);
1513 setUniform(gl, programID, "s[1].a", constCoords.w());
1516 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1517 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1520 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1521 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1524 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1525 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1526 setUniform(gl, programID, "s[1].c", 1);
1558 setUniform(gl, programID, "s[0].a", constCoords.x());
1559 setUniform(gl, programID, "s[0].b", 0);
1560 setUniform(gl, programID, "s[1].a", constCoords.y());
1561 setUniform(gl, programID, "s[1].b", -1);
1562 setUniform(gl, programID, "s[2].a", constCoords.z());
1563 setUniform(gl, programID, "s[2].b", 2);
1616 setUniform(gl, programID, "s[0].a", constCoords.x());
1619 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1620 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1623 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1624 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1627 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1628 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1629 setUniform(gl, programID, "s[0].c", 0);
1631 setUniform(gl, programID, "s[1].a", constCoords.w());
1634 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1635 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1638 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1639 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1642 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1643 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1644 setUniform(gl, programID, "s[1].c", 1);
1677 setUniform(gl, programID, "s[0].a", constCoords.x());
1678 setUniform(gl, programID, "s[0].b", 0);
1679 setUniform(gl, programID, "s[1].a", constCoords.y());
1680 setUniform(gl, programID, "s[1].b", -1);
1681 setUniform(gl, programID
1682 setUniform(gl, programID, "s[2].b", 2);
1736 setUniform(gl, programID, "s[0].a", constCoords.x());
1739 setUniform(gl, programID, "s[0].b[0].a", 0.5f);
1740 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1743 setUniform(gl, programID, "s[0].b[1].a", 1.0f/3.0f);
1744 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1747 setUniform(gl, programID, "s[0].b[2].a", 1.0f/4.0f);
1748 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1749 setUniform(gl, programID, "s[0].c", 0);
1751 setUniform(gl, programID, "s[1].a", constCoords.w());
1754 setUniform(gl, programID, "s[1].b[0].a", 2.0f);
1755 setUniform(gl, programID, "s[1].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1758 setUniform(gl, programID, "s[1].b[1].a", 3.0f);
1759 setUniform(gl, programID, "s[1].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1762 setUniform(gl, programID, "s[1].b[2].a", 4.0f);
1763 setUniform(gl, programID, "s[1].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr));
1764 setUniform(gl, programID, "s[1].c", 1);
1789 setUniform(gl, programID, "s.a", 1.0f);
1790 setUniform(gl, programID, "s.b", tcu::Vec3(0.25f, 0.25f, 0.5f));
1791 setUniform(gl, programID, "s.c", 0);
1821 setUniform(gl, programID, "s.a", 0.5f);
1822 setUniform(gl, programID, "s.b.a", 0);
1823 setUniform(gl, programID, "s.b.b", tcu::Vec2(0.25f, 0.25f));
1824 setUniform(gl, programID, "s.c", 1);
1849 setUniform(gl, programID, "s[0].a", 1.0f);
1850 setUniform(gl, programID, "s[0].b", tcu::Vec3(0.25f, 0.25f, 0.25f));
1851 setUniform(gl, programID, "s[0].c", 1);
1852 setUniform(gl, programID, "s[1].a", 0.0f);
1853 setUniform(gl, programID, "s[1].b", tcu::Vec3(0.5f, 0.5f, 0.5f));
1854 setUniform(gl, programID, "s[1].c", 0);
1886 setUniform(gl, programID, "a.a", 1.0f);
1887 setUniform(gl, programID, "a.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1888 setUniform(gl, programID, "a.c", 2);
1889 setUniform(gl, programID, "b.a", 1.0f);
1890 setUniform(gl, programID, "b.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1891 setUniform(gl, programID, "b.c", 2);
1892 setUniform(gl, programID, "c.a", 1.0f);
1893 setUniform(gl, programID, "c.b", tcu::Vec3(0.0f, 1.1f, 2.0f));
1894 setUniform(gl, programID, "c.c", 2);
1928 setUniform(gl, programID, "a.a", 1.0f);
1929 setUniform(gl, programID, "a.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1930 setUniform(gl, programID, "a.c", 2);
1931 setUniform(gl, programID, "b.a", 1.0f);
1932 setUniform(gl, programID, "b.b", tcu::Vec3(0.0f, 1.0f, 2.0f));
1933 setUniform(gl, programID, "b.c", 2);
1934 setUniform(gl, programID, "c.a", 1.0f);
1935 setUniform(gl, programID, "c.b", tcu::Vec3(0.0f, 1.1f, 2.0f));
1936 setUniform(gl, programID, "c.c", 2);