Lines Matching defs:program

108 bool verifyProgramParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLenum pname, GLenum reference)
111 gl.glGetProgramiv(program, pname, &state);
198 void verifyUniformValue1f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x)
203 gl.glGetUniformfv(program, location, state);
223 void verifyUniformValue2f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y)
228 gl.glGetUniformfv(program, location, state);
251 void verifyUniformValue3f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z)
256 gl.glGetUniformfv(program, location, state);
282 void verifyUniformValue4f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z, float w)
287 gl.glGetUniformfv(program, location, state);
316 void verifyUniformValue1i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x)
321 gl.glGetUniformiv(program, location, state);
341 void verifyUniformValue2i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y)
346 gl.glGetUniformiv(program, location, state);
369 void verifyUniformValue3i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z)
374 gl.glGetUniformiv(program, location, state);
400 void verifyUniformValue4i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w)
405 gl.glGetUniformiv(program, location, state);
435 void verifyUniformValues (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values)
440 gl.glGetUniformfv(program, location, state);
458 void verifyUniformMatrixValues (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values, bool transpose)
463 gl.glGetUniformfv(program, location, state);
985 GLuint program = glCreateProgram();
986 glAttachShader(program, shaderVert);
987 glAttachShader(program, shaderFrag);
988 glLinkProgram(program);
995 glGetProgramInfoLog(program, DE_LENGTH_OF_ARRAY(buffer), &written, buffer);
998 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &logLength);
1014 glGetProgramInfoLog(program, 1, &written, buffer);
1026 glDeleteProgram(program);
1053 GLuint program = glCreateProgram();
1054 glAttachShader(program, shaderVert);
1055 glAttachShader(program, shaderFrag);
1056 glLinkProgram(program);
1061 verifyProgramParam (m_testCtx, *this, program, GL_LINK_STATUS, GL_TRUE);
1063 glValidateProgram(program);
1064 verifyProgramParam(m_testCtx, *this, program, GL_VALIDATE_STATUS, GL_TRUE);
1068 glDeleteProgram(program);
1084 GLuint program = glCreateProgram();
1085 glAttachShader(program, shaderVert);
1086 glAttachShader(program, shaderFrag);
1087 glLinkProgram(program);
1092 verifyProgramParam (m_testCtx, *this, program, GL_LINK_STATUS, GL_FALSE);
1094 glValidateProgram(program);
1095 verifyProgramParam(m_testCtx, *this, program, GL_VALIDATE_STATUS, GL_FALSE);
1099 glDeleteProgram(program);
1129 GLuint program = glCreateProgram();
1130 verifyProgramParam(m_testCtx, *this, program, GL_ATTACHED_SHADERS, 0);
1133 glAttachShader(program, shaderVert);
1134 verifyProgramParam(m_testCtx, *this, program, GL_ATTACHED_SHADERS, 1);
1137 glAttachShader(program, shaderFrag);
1138 verifyProgramParam(m_testCtx, *this, program, GL_ATTACHED_SHADERS, 2);
1145 glGetAttachedShaders(program, DE_LENGTH_OF_ARRAY(shaders), &count, shaders);
1168 glGetAttachedShaders(program, 0, &count, shaders);
1177 glGetAttachedShaders(program, 1, &count, shaders);
1188 glDeleteProgram(program);
1230 GLuint program = glCreateProgram();
1231 glAttachShader(program, shaderVert);
1232 glAttachShader(program, shaderFrag);
1233 glLinkProgram(program);
1236 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_UNIFORMS, 3);
1237 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_UNIFORM_MAX_LENGTH, (GLint)std::string("uniformNameWithLength23").length() + 1); // including a null terminator
1256 glGetActiveUniform(program, ndx, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &type, buffer);
1285 glGetActiveUniform(program, ndx, 1, &written, &size, &type, buffer);
1298 glDeleteProgram(program);
1353 GLuint program = glCreateProgram();
1355 glAttachShader(program, shaderVert);
1356 glAttachShader(program, shaderFrag);
1384 glLinkProgram(program);
1387 if (verifyProgramParam(m_testCtx, *this, program, GL_LINK_STATUS, GL_TRUE))
1395 glGetActiveUniform(program, index, 0, &written, &size, &type, buffer);
1404 glDeleteProgram(program);
1444 GLuint program = glCreateProgram();
1445 glAttachShader(program, shaderVert);
1446 glAttachShader(program, shaderFrag);
1447 glLinkProgram(program);
1450 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_ATTRIBUTES, 2);
1451 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, (GLint)std::string("longInputAttributeName").length() + 1); // does include null-terminator
1461 glGetActiveAttrib(program, attributeNdx, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &type, buffer);
1488 glGetActiveAttrib(program, 0, 1, &written, &size, &type, buffer);
1495 glDeleteProgram(program);
1783 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(testVertSource, testFragSource));
1784 if (!program.isOk())
1786 m_log << program;
1791 glUseProgram(program.getProgram());
1796 location = glGetUniformLocation(program.getProgram(), "floatUniform");
1798 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), location, 1.0f);
1800 location = glGetUniformLocation(program.getProgram(), "float2Uniform");
1802 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), location, 1.0f, 2.0f);
1804 location = glGetUniformLocation(program.getProgram(), "float3Uniform");
1806 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), location, 1.0f, 2.0f, 3.0f);
1808 location = glGetUniformLocation(program.getProgram(), "float4Uniform");
1810 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), location, 1.0f, 2.0f, 3.0f, 4.0f);
1842 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(testVertSource, testFragSource));
1843 if (!program.isOk())
1845 m_log << program;
1850 glUseProgram(program.getProgram());
1855 location = glGetUniformLocation(program.getProgram(), "intUniform");
1857 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1);
1859 location = glGetUniformLocation(program.getProgram(), "int2Uniform");
1861 verifyUniformValue2i(m_testCtx, *this, program.getProgram(), location, 1, 2);
1863 location = glGetUniformLocation(program.getProgram(), "int3Uniform");
1865 verifyUniformValue3i(m_testCtx, *this, program.getProgram(), location, 1, 2, 3);
1867 location = glGetUniformLocation(program.getProgram(), "int4Uniform");
1869 verifyUniformValue4i(m_testCtx, *this, program.getProgram(), location, 1, 2, 3, 4);
1901 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(testVertSource, testFragSource));
1902 if (!program.isOk())
1904 m_log << program;
1909 glUseProgram(program.getProgram());
1916 location = glGetUniformLocation(program.getProgram(), "boolUniform");
1918 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1);
1920 location = glGetUniformLocation(program.getProgram(), "bool2Uniform");
1922 verifyUniformValue2i(m_testCtx, *this, program.getProgram(), location, 1, 1);
1924 location = glGetUniformLocation(program.getProgram(), "bool3Uniform");
1926 verifyUniformValue3i(m_testCtx, *this, program.getProgram(), location, 0, 1, 1);
1928 location = glGetUniformLocation(program.getProgram(), "bool4Uniform");
1930 verifyUniformValue4i(m_testCtx, *this, program.getProgram(), location, 1, 0, 1, 1);
1934 location = glGetUniformLocation(program.getProgram(), "boolUniform");
1936 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1);
1938 location = glGetUniformLocation(program.getProgram(), "bool2Uniform");
1940 verifyUniformValue2i(m_testCtx, *this, program.getProgram(), location, 1, 1);
1942 location = glGetUniformLocation(program.getProgram(), "bool3Uniform");
1944 verifyUniformValue3i(m_testCtx, *this, program.getProgram(), location, 0, 1, 1);
1946 location = glGetUniformLocation(program.getProgram(), "bool4Uniform");
1948 verifyUniformValue4i(m_testCtx, *this, program.getProgram(), location, 1, 0, 1, 1);
1978 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(testVertSource, testFragSource));
1979 if (!program.isOk())
1981 m_log << program;
1986 glUseProgram(program.getProgram());
1991 location = glGetUniformLocation(program.getProgram(), "uniformSampler");
1993 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1);
2030 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(testVertSource, testFragSource));
2031 if (!program.isOk())
2033 m_log << program;
2038 glUseProgram(program.getProgram());
2052 location = glGetUniformLocation(program.getProgram(), "arrayUniform");
2056 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "arrayUniform[0]"), uniformValue[0]);
2057 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "arrayUniform[1]"), uniformValue[1]);
2058 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "arrayUniform[2]"), uniformValue[2]);
2059 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "arrayUniform[3]"), uniformValue[3]);
2060 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "arrayUniform[4]"), uniformValue[4]);
2063 location = glGetUniformLocation(program.getProgram(),"array2Uniform");
2067 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array2Uniform[0]"), uniformValue[2 * 0], uniformValue[(2 * 0) + 1]);
2068 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array2Uniform[1]"), uniformValue[2 * 1], uniformValue[(2 * 1) + 1]);
2069 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array2Uniform[2]"), uniformValue[2 * 2], uniformValue[(2 * 2) + 1]);
2070 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array2Uniform[3]"), uniformValue[2 * 3], uniformValue[(2 * 3) + 1]);
2071 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array2Uniform[4]"), uniformValue[2 * 4], uniformValue[(2 * 4) + 1]);
2074 location = glGetUniformLocation(program.getProgram(),"array3Uniform");
2078 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array3Uniform[0]"), uniformValue[3 * 0], uniformValue[(3 * 0) + 1], uniformValue[(3 * 0) + 2]);
2079 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array3Uniform[1]"), uniformValue[3 * 1], uniformValue[(3 * 1) + 1], uniformValue[(3 * 1) + 2]);
2080 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array3Uniform[2]"), uniformValue[3 * 2], uniformValue[(3 * 2) + 1], uniformValue[(3 * 2) + 2]);
2081 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array3Uniform[3]"), uniformValue[3 * 3], uniformValue[(3 * 3) + 1], uniformValue[(3 * 3) + 2]);
2082 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array3Uniform[4]"), uniformValue[3 * 4], uniformValue[(3 * 4) + 1], uniformValue[(3 * 4) + 2]);
2085 location = glGetUniformLocation(program.getProgram(),"array4Uniform");
2089 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array4Uniform[0]"), uniformValue[4 * 0], uniformValue[(4 * 0) + 1], uniformValue[(4 * 0) + 2], uniformValue[(4 * 0) + 3]);
2090 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array4Uniform[1]"), uniformValue[4 * 1], uniformValue[(4 * 1) + 1], uniformValue[(4 * 1) + 2], uniformValue[(4 * 1) + 3]);
2091 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array4Uniform[2]"), uniformValue[4 * 2], uniformValue[(4 * 2) + 1], uniformValue[(4 * 2) + 2], uniformValue[(4 * 2) + 3]);
2092 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array4Uniform[3]"), uniformValue[4 * 3], uniformValue[(4 * 3) + 1], uniformValue[(4 * 3) + 2], uniformValue[(4 * 3) + 3]);
2093 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgram(), "array4Uniform[4]"), uniformValue[4 * 4], uniformValue[(4 * 4) + 1], uniformValue[(4 * 4) + 2], uniformValue[(4 * 4) + 3]);
2126 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(testVertSource, testFragSource));
2127 if (!program.isOk())
2129 m_log << program;
2134 glUseProgram(program.getProgram());
2149 location = glGetUniformLocation(program.getProgram(), "mat2Uniform");
2151 verifyUniformMatrixValues<2>(m_testCtx, *this, program.getProgram(), location, matrixValues, false);
2153 location = glGetUniformLocation(program.getProgram(), "mat3Uniform");
2155 verifyUniformMatrixValues<3>(m_testCtx, *this, program.getProgram(), location, matrixValues, false);
2157 location = glGetUniformLocation(program.getProgram(), "mat4Uniform");
2159 verifyUniformMatrixValues<4>(m_testCtx, *this, program.getProgram(), location, matrixValues, false);
2290 // shader and program
2298 // program