Lines Matching refs:program

185 			GLuint program		= glCreateProgram();
188 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
193 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
199 glGetAttachedShaders(program, -1, &count[0], &shaders[0]);
204 glDeleteProgram(program);
213 GLuint program = glCreateProgram();
227 glGetShaderiv(program, GL_SHADER_TYPE, &param[0]);
232 glDeleteProgram(program);
237 GLuint program = glCreateProgram();
247 glGetShaderInfoLog(program, 128, &length[0], &infoLog[0]);
257 glDeleteProgram(program);
284 GLuint program = glCreateProgram();
293 glGetShaderSource(program, 1, &length[0], &source[0]);
302 glDeleteProgram(program);
310 GLuint program = glCreateProgram();
315 glGetProgramiv(program, -1, &params[0]);
319 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
324 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program does not refer to a program object.");
329 glDeleteProgram(program);
334 GLuint program = glCreateProgram();
339 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
344 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
350 glGetProgramInfoLog (program, -1, &length[0], &infoLog[0]);
354 glDeleteProgram(program);
388 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
389 glUseProgram(program.getProgram());
391 GLint unif = glGetUniformLocation(program.getProgram(), "vUnif_vec4"); // vec4
399 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
404 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
409 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
414 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
415 glGetUniformfv (program.getProgram(), -1, &params[0]);
424 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
425 glUseProgram(program.getProgram());
427 GLint unif = glGetUniformLocation(program.getProgram(), "fUnif_ivec4"); // ivec4
435 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
440 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
445 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
450 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
451 glGetUniformiv (program.getProgram(), -1, &params[0]);
460 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
461 glUseProgram(program.getProgram());
463 GLint unif = glGetUniformLocation(program.getProgram(), "fUnif_uvec4"); // uvec4
471 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
476 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
481 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been successfully linked.");
486 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
487 glGetUniformuiv (program.getProgram(), -1, &params[0]);
497 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
500 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms);
503 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
508 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
513 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equal to the number of active uniform variables in program.");
514 glUseProgram(program.getProgram());
515 glGetActiveUniform(program.getProgram(), numActiveUniforms, 0, 0, 0, 0, 0);
520 glGetActiveUniform(program.getProgram(), 0, -1, 0, 0, 0, 0);
530 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
535 glUseProgram(program.getProgram());
537 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms);
540 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
545 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
550 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if any value in uniformIndices is greater than or equal to the value of GL_ACTIVE_UNIFORMS for program.");
559 glGetActiveUniformsiv(program.getProgram(), (GLsizei)invalidUniformIndices.size(), &invalidUniformIndices[0], GL_UNIFORM_TYPE, &dummyParamsDst[0]);
565 glGetActiveUniformsiv(program.getProgram(), 1, &dummyUniformIndex, -1, &dummyParamDst);
574 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
578 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
582 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if uniformBlockIndex is greater than or equal to the value of GL_ACTIVE_UNIFORM_BLOCKS or is not the index of an active uniform block in program.");
583 glUseProgram(program.getProgram());
585 glGetActiveUniformBlockiv(program.getProgram(), numActiveBlocks, GL_UNIFORM_BLOCK_BINDING, &params);
590 glGetActiveUniformBlockiv(program.getProgram(), 0, -1, &params);
598 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
605 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
609 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if uniformBlockIndex is greater than or equal to the value of GL_ACTIVE_UNIFORM_BLOCKS or is not the index of an active uniform block in program.");
610 glUseProgram(program.getProgram());
612 glGetActiveUniformBlockName(program.getProgram(), numActiveBlocks, (int)sizeof(uniformBlockName), &length, &uniformBlockName[0]);
621 glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
631 glGetProgramiv (program.getProgram(), GL_ACTIVE_ATTRIBUTES, &numActiveAttributes);
634 glUseProgram(program.getProgram());
636 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
641 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is not a program object.");
647 glGetActiveAttrib(program.getProgram(), numActiveAttributes, (int)sizeof(name), &length, &size, &type, &name[0]);
652 glGetActiveAttrib(program.getProgram(), 0, -1, &length, &size, &type, &name[0]);
662 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
667 glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
671 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is a name of shader object.");
676 m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if program is not name of program or shader object.");
768 GLuint program = glCreateProgram();
770 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program is the name of a shader object.");
775 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if program has not been linked.");
776 glGetFragDataLocation(program, "gl_FragColor");
780 glDeleteProgram(program);
1116 GLuint program = 0;
1119 m_log << TestLog::Section("", "A name created with glCreateProgram, and not yet deleted with glDeleteProgram is a name of a program object.");
1120 isProgram = glIsProgram(program);
1123 program = glCreateProgram();
1124 isProgram = glIsProgram(program);
1127 glDeleteProgram (program);
1128 isProgram = glIsProgram(program);