Lines Matching refs:program

99 			GLuint program = glCreateProgram();
100 glShaderSource(program, 0, 0, 0);
104 glDeleteProgram(program);
122 GLuint program = glCreateProgram();
123 glCompileShader(program);
127 glDeleteProgram(program);
150 GLuint program = glCreateProgram();
174 glShaderBinary(1, &program, binaryFormats[0], 0, 0);
188 glDeleteProgram(program);
196 GLuint program = glCreateProgram();
198 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
204 glAttachShader(program, program);
206 glAttachShader(shader1, program);
210 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
211 glAttachShader(program, -1);
219 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.");
220 glAttachShader(program, shader1);
222 glAttachShader(program, shader1);
224 glAttachShader(program, shader2);
228 glDeleteProgram(program);
235 GLuint program = glCreateProgram();
237 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
240 glDetachShader(program, -1);
246 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
252 glDetachShader(program, program);
254 glDetachShader(shader, program);
258 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if shader is not attached to program.");
259 glDetachShader(program, shader);
263 glDeleteProgram(program);
270 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
275 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
286 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is neither 0 nor a value generated by OpenGL.");
291 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
301 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
309 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
310 glUseProgram(program.getProgram());
312 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
317 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
322 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.");
323 glGetActiveAttrib(program.getProgram(), 0, 0, 0, 0, 0, 0);
328 glGetActiveAttrib(program.getProgram(), 0, -1, 0, 0, 0, 0);
339 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
341 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
347 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a program or shader object.");
348 glUseProgram(program.getProgram());
349 glBindAttribLocation(program.getProgram(), 0, "test");
351 glGetAttribLocation(program.getProgram(), "test");
357 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
370 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
372 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
377 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
378 glUseProgram(program.getProgram());
383 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
394 GLuint program = glCreateProgram();
399 glBindAttribLocation(program, maxIndex, "test");
404 glBindAttribLocation(program, maxIndex-1, "gl_test");
408 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
413 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
418 glDeleteProgram(program);
424 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
426 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
431 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
436 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.");
437 glUseProgram(program.getProgram());
438 glGetActiveUniform(program.getProgram(), 5, 0, 0, 0, 0, 0);
443 glGetActiveUniform(program.getProgram(), 0, -1, 0, 0, 0, 0);
454 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
459 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
482 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
496 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
497 glUseProgram(program.getProgram());
498 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
499 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
500 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
509 glUseProgram(program.getProgram());
521 glUseProgram(program.getProgram());
527 glUseProgram(program.getProgram());
536 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
537 glUseProgram(program.getProgram());
539 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.");
540 glUseProgram(program.getProgram());
550 glUseProgram(program.getProgram());
570 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
584 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
585 glUseProgram(program.getProgram());
586 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
587 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
588 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
599 glUseProgram(program.getProgram());
611 glUseProgram(program.getProgram());
617 glUseProgram(program.getProgram());
626 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
627 glUseProgram(program.getProgram());
631 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.");
632 glUseProgram(program.getProgram());
642 glUseProgram(program.getProgram());
657 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
658 glUseProgram(program.getProgram());
659 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
670 glUseProgram(program.getProgram());
688 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
702 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
703 glUseProgram(program.getProgram());
704 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
705 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
706 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
715 glUseProgram(program.getProgram());
727 glUseProgram(program.getProgram());
736 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
737 glUseProgram(program.getProgram());
739 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.");
740 glUseProgram(program.getProgram());
750 glUseProgram(program.getProgram());
770 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
784 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
785 glUseProgram(program.getProgram());
786 GLint vUnif = glGetUniformLocation(program.getProgram(), "vTest"); // vec4
787 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
788 GLint fSampler = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
799 glUseProgram(program.getProgram());
811 glUseProgram(program.getProgram());
820 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
821 glUseProgram(program.getProgram());
825 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.");
826 glUseProgram(program.getProgram());
836 glUseProgram(program.getProgram());
851 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
852 glUseProgram(program.getProgram());
853 GLint fUnif = glGetUniformLocation(program.getProgram(), "fTest"); // ivec4
864 glUseProgram(program.getProgram());
884 m_log << tcu::TestLog::Section("", "GL_INVALID_OPERATION is generated if there is no current program object.");
896 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
897 glUseProgram(program.getProgram());
898 GLint vMatUnif = glGetUniformLocation(program.getProgram(), "vMatrix"); // mat4
899 GLint fSamplerUnif = glGetUniformLocation(program.getProgram(), "fSampler"); // sampler2D
901 m_log << program;
912 glUseProgram(program.getProgram());
922 glUseProgram(program.getProgram());
931 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
932 glUseProgram(program.getProgram());
934 m_log << program;
938 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.");
939 glUseProgram(program.getProgram());
947 glUseProgram(program.getProgram());
960 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
961 glUseProgram(program.getProgram());
962 GLint vMatUnif = glGetUniformLocation(program.getProgram(), "vMatrix"); // mat4
964 m_log << program;
976 glUseProgram(program.getProgram());
989 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
990 glUseProgram(program.getProgram());
992 m_log << program;
997 glUseProgram(program.getProgram());