Lines Matching refs:program
119 GLuint program = glCreateProgram();
120 glShaderSource(program, 0, 0, 0);
124 glDeleteProgram(program);
137 GLuint program = glCreateProgram();
138 glCompileShader(program);
142 glDeleteProgram(program);
202 GLuint program = glCreateProgram();
204 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
210 glAttachShader(program, program);
212 glAttachShader(shader1, program);
216 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
217 glAttachShader(program, -1);
225 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is already attached to program.");
226 glAttachShader(program, shader1);
228 glAttachShader(program, shader1);
233 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if a shader of the same type as shader is already attached to program.");
234 glAttachShader(program, shader2);
239 glDeleteProgram(program);
246 GLuint program = glCreateProgram();
248 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
251 glDetachShader(program, -1);
257 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
263 glDetachShader(program, program);
265 glDetachShader(shader, program);
269 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not attached to program.");
270 glDetachShader(program, shader);
274 glDeleteProgram(program);
281 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
286 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
293 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is the currently active program object and transform feedback mode is active.");
294 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
302 glUseProgram (program.getProgram());
303 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
304 glLinkProgram (program.getProgram());
312 glLinkProgram (program.getProgram());
325 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is neither 0 nor a value generated by OpenGL.");
330 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
373 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
382 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
387 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
398 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
406 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if bufSize is less than the size of GL_PROGRAM_BINARY_LENGTH for program.");
407 glGetProgramiv (program.getProgram(), GL_PROGRAM_BINARY_LENGTH, &bufSize);
409 glGetProgramiv (program.getProgram(), GL_LINK_STATUS, &linkStatus);
414 glGetProgramBinary (program.getProgram(), 0, &binaryLength, &binaryFormat, &binaryPtr);
418 glGetProgramBinary (program.getProgram(), bufSize-1, &binaryLength, &binaryFormat, &binaryPtr);
423 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if GL_LINK_STATUS for the program object is false.");
460 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not the name of an existing program object.");
476 GLuint program = glCreateProgram();
478 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not the name of an existing program object.");
484 glProgramParameteri (program, -1, GL_TRUE);
489 glProgramParameteri (program, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, 2);
493 glDeleteProgram(program);
651 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
653 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
659 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a program or shader object.");
660 glUseProgram (program.getProgram());
661 glBindAttribLocation (program.getProgram(), 0, "test");
663 glGetAttribLocation (program.getProgram(), "test");
669 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
683 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
685 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
690 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
691 glUseProgram(program.getProgram());
696 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
707 GLuint program = glCreateProgram();
712 glBindAttribLocation(program, maxIndex, "test");
717 glBindAttribLocation(program, maxIndex-1, "gl_test");
721 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
726 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
731 glDeleteProgram(program);
736 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformBlockVertSource, uniformTestFragSource));
738 glUseProgram (program.getProgram());
744 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms);
745 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
751 m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if uniformBlockIndex is not an active uniform block index of program.");
752 glUniformBlockBinding(program.getProgram(), -1, 0);
754 glUniformBlockBinding(program.getProgram(), 5, 0);
759 glUniformBlockBinding(program.getProgram(), maxUniformBufferBindings, 0);
763 m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if program is not the name of a program object generated by the GL.");
773 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
787 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
789 glUseProgram(program.getProgram());
790 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
791 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
792 GLint uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
793 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
803 glUseProgram(program.getProgram());
815 glUseProgram(program.getProgram());
823 glUseProgram(program.getProgram());
832 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
834 glUseProgram(program.getProgram());
837 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
838 glUseProgram(program.getProgram());
848 glUseProgram(program.getProgram());
868 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
882 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
884 glUseProgram(program.getProgram());
885 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
886 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
887 GLint uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
888 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
900 glUseProgram(program.getProgram());
912 glUseProgram(program.getProgram());
920 glUseProgram(program.getProgram());
929 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
931 glUseProgram(program.getProgram());
936 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
937 glUseProgram(program.getProgram());
947 glUseProgram(program.getProgram());
962 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
964 glUseProgram (program.getProgram());
965 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
977 glUseProgram(program.getProgram());
995 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
1009 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1011 glUseProgram(program.getProgram());
1012 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1013 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1014 GLint uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1015 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1025 glUseProgram(program.getProgram());
1037 glUseProgram(program.getProgram());
1049 glUseProgram(program.getProgram());
1064 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1066 glUseProgram(program.getProgram());
1069 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1070 glUseProgram(program.getProgram());
1080 glUseProgram(program.getProgram());
1100 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
1114 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1116 glUseProgram(program.getProgram());
1117 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1118 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1119 GLint uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1120 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1132 glUseProgram(program.getProgram());
1144 glUseProgram(program.getProgram());
1156 glUseProgram(program.getProgram());
1171 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1173 glUseProgram(program.getProgram());
1178 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1179 glUseProgram(program.getProgram());
1189 glUseProgram(program.getProgram());
1204 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1206 glUseProgram (program.getProgram());
1207 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1219 glUseProgram(program.getProgram());
1237 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
1251 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1253 glUseProgram(program.getProgram());
1254 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1255 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1256 GLint uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1257 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1267 glUseProgram(program.getProgram());
1279 glUseProgram(program.getProgram());
1291 glUseProgram(program.getProgram());
1303 glUseProgram(program.getProgram());
1312 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1314 glUseProgram(program.getProgram());
1317 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1318 glUseProgram(program.getProgram());
1328 glUseProgram(program.getProgram());
1348 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
1362 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1364 glUseProgram(program.getProgram());
1365 GLint vec4_v = glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1366 GLint ivec4_f = glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1367 GLint uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1368 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1380 glUseProgram(program.getProgram());
1392 glUseProgram(program.getProgram());
1404 glUseProgram(program.getProgram());
1416 glUseProgram(program.getProgram());
1425 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1427 glUseProgram(program.getProgram());
1432 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1433 glUseProgram(program.getProgram());
1443 glUseProgram(program.getProgram());
1458 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1460 glUseProgram (program.getProgram());
1461 int uvec4_f = glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1473 glUseProgram(program.getProgram());
1494 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
1519 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1521 glUseProgram (program.getProgram());
1522 GLint mat4_v = glGetUniformLocation(program.getProgram(), "mat4_v"); // mat4
1523 GLint sampler_f = glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1535 glUseProgram(program.getProgram());
1558 glUseProgram(program.getProgram());
1584 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1586 glUseProgram(program.getProgram());
1591 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1592 glUseProgram(program.getProgram());
1613 glUseProgram(program.getProgram());
1639 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1641 glUseProgram (program.getProgram());
1642 GLint mat4_v = glGetUniformLocation(program.getProgram(), "mat4_v"); // mat4
1654 glUseProgram(program.getProgram());
1692 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1705 glUseProgram (program.getProgram());
1706 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1707 glLinkProgram (program.getProgram());
1742 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1749 glUseProgram (program.getProgram());
1750 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1751 glLinkProgram (program.getProgram());
1777 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if no binding points would be used because no program object is active.");
1781 glUseProgram (program.getProgram());
1784 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if no binding points would be used because the active program object has specified no varying variables to record.");
1785 glTransformFeedbackVaryings (program.getProgram(), 0, 0, GL_INTERLEAVED_ATTRIBS);
1798 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1805 glUseProgram (program.getProgram());
1806 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1807 glLinkProgram (program.getProgram());
1832 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1839 glUseProgram (program.getProgram());
1840 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1841 glLinkProgram (program.getProgram());
1867 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1874 glUseProgram (program.getProgram());
1875 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1876 glLinkProgram (program.getProgram());
1898 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1910 glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1912 glLinkProgram (program.getProgram());
1918 m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if program is not the name of a program object.");
1924 glGetProgramiv (program.getProgram(), GL_TRANSFORM_FEEDBACK_VARYINGS, &maxTransformFeedbackVaryings);
1925 glGetTransformFeedbackVarying (program.getProgram(), maxTransformFeedbackVaryings, 32, &length, &size, &type, &name[0]);
1929 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION or GL_INVALID_VALUE is generated program has not been linked.");
1940 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1947 m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if program is not the name of a program object.");
1954 glTransformFeedbackVaryings (program.getProgram(), maxTransformFeedbackSeparateAttribs+1, &tfVarying, GL_SEPARATE_ATTRIBS);