Lines Matching refs:program
101 GLuint program = glCreateProgram();
102 glShaderSource(program, 0, 0, 0);
106 glDeleteProgram(program);
124 GLuint program = glCreateProgram();
125 glCompileShader(program);
129 glDeleteProgram(program);
152 GLuint program = glCreateProgram();
176 glShaderBinary(1, &program, binaryFormats[0], 0, 0);
190 glDeleteProgram(program);
198 GLuint program = glCreateProgram();
200 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
206 glAttachShader(program, program);
208 glAttachShader(shader1, program);
212 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
213 glAttachShader(program, -1);
221 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is already attached to program, or if another shader object of the same type as shader is already attached to program.");
222 glAttachShader(program, shader1);
224 glAttachShader(program, shader1);
226 glAttachShader(program, shader2);
230 glDeleteProgram(program);
237 GLuint program = glCreateProgram();
239 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
242 glDetachShader(program, -1);
248 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
254 glDetachShader(program, program);
256 glDetachShader(shader, program);
260 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not attached to program.");
261 glDetachShader(program, shader);
265 glDeleteProgram(program);
272 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
277 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
288 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is neither 0 nor a value generated by OpenGL.");
293 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
303 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
311 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
312 glUseProgram(program.getProgram());
314 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
319 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
324 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equal to the number of active attribute variables in program.");
325 glGetActiveAttrib(program.getProgram(), 0, 0, 0, 0, 0, 0);
330 glGetActiveAttrib(program.getProgram(), 0, -1, 0, 0, 0, 0);
341 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
343 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
349 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a program or shader object.");
350 glUseProgram(program.getProgram());
351 glBindAttribLocation(program.getProgram(), 0, "test");
353 glGetAttribLocation(program.getProgram(), "test");
359 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
372 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
374 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
379 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
380 glUseProgram(program.getProgram());
385 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
396 GLuint program = glCreateProgram();
401 glBindAttribLocation(program, maxIndex, "test");
406 glBindAttribLocation(program, maxIndex-1, "gl_test");
410 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
415 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
420 glDeleteProgram(program);
426 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
428 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
433 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
438 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equal to the number of active attribute variables in program.");
439 glUseProgram(program.getProgram());
440 glGetActiveUniform(program.getProgram(), 5, 0, 0, 0, 0, 0);
445 glGetActiveUniform(program.getProgram(), 0, -1, 0, 0, 0, 0);
456 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
461 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
484 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
498 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
499 glUseProgram(program.getProgram());
500 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
501 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
502 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
511 glUseProgram(program.getProgram());
523 glUseProgram(program.getProgram());
529 glUseProgram(program.getProgram());
538 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
539 glUseProgram(program.getProgram());
541 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.");
542 glUseProgram(program.getProgram());
552 glUseProgram(program.getProgram());
572 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
586 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
587 glUseProgram(program.getProgram());
588 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
589 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
590 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
601 glUseProgram(program.getProgram());
613 glUseProgram(program.getProgram());
619 glUseProgram(program.getProgram());
628 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
629 glUseProgram(program.getProgram());
633 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.");
634 glUseProgram(program.getProgram());
644 glUseProgram(program.getProgram());
659 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
660 glUseProgram(program.getProgram());
661 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
672 glUseProgram(program.getProgram());
690 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
704 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
705 glUseProgram(program.getProgram());
706 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
707 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
708 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
717 glUseProgram(program.getProgram());
729 glUseProgram(program.getProgram());
738 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
739 glUseProgram(program.getProgram());
741 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.");
742 glUseProgram(program.getProgram());
752 glUseProgram(program.getProgram());
772 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
786 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
787 glUseProgram(program.getProgram());
788 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
789 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
790 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
801 glUseProgram(program.getProgram());
813 glUseProgram(program.getProgram());
822 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
823 glUseProgram(program.getProgram());
827 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.");
828 glUseProgram(program.getProgram());
838 glUseProgram(program.getProgram());
853 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
854 glUseProgram(program.getProgram());
855 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
866 glUseProgram(program.getProgram());
886 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
898 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
899 glUseProgram(program.getProgram());
900 GLint vMatUnif = glGetUniformLocation(program.getProgram(), "vMatrix"); // mat4
901 GLint fSamplerUnif = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
903 m_log << program;
914 glUseProgram(program.getProgram());
924 glUseProgram(program.getProgram());
933 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
934 glUseProgram(program.getProgram());
936 m_log << program;
940 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.");
941 glUseProgram(program.getProgram());
949 glUseProgram(program.getProgram());
962 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
963 glUseProgram(program.getProgram());
964 GLint vMatUnif = glGetUniformLocation(program.getProgram(), "vMatrix"); // mat4
966 m_log << program;
978 glUseProgram(program.getProgram());
997 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
998 glUseProgram(program.getProgram());
1000 m_log << program;
1005 glUseProgram(program.getProgram());