Lines Matching defs:program

304 	GLuint	program			= ctx.glCreateProgram();
307 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
312 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
318 ctx.glGetAttachedShaders(program, -1, &count[0], &shaders[0]);
323 ctx.glDeleteProgram(program);
330 GLuint program = ctx.glCreateProgram();
347 ctx.glGetShaderiv(program, GL_SHADER_TYPE, &param[0]);
352 ctx.glDeleteProgram(program);
358 GLuint program = ctx.glCreateProgram();
368 ctx.glGetShaderInfoLog(program, 128, &length[0], &infoLog[0]);
378 ctx.glDeleteProgram(program);
407 GLuint program = ctx.glCreateProgram();
416 ctx.glGetShaderSource(program, 1, &length[0], &source[0]);
425 ctx.glDeleteProgram(program);
433 GLuint program = ctx.glCreateProgram();
438 ctx.glGetProgramiv(program, -1, &params[0]);
442 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
447 ctx.beginSection("GL_INVALID_OPERATION is generated if program does not refer to a program object.");
452 ctx.glDeleteProgram(program);
458 GLuint program = ctx.glCreateProgram();
463 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
468 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
474 ctx.glGetProgramInfoLog (program, -1, &length[0], &infoLog[0]);
478 ctx.glDeleteProgram(program);
546 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
552 ctx.glUseProgram(program.getProgram());
554 unif = ctx.glGetUniformLocation(program.getProgram(), "vUnif_vec4"); // vec4
561 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
566 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
571 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
576 ctx.beginSection("GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
577 ctx.glGetUniformfv (program.getProgram(), -1, &params[0]);
589 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
590 GLint unif = ctx.glGetUniformLocation(program.getProgram(), "vUnif_vec4");
596 ctx.glUseProgram(program.getProgram());
606 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
611 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
616 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
621 ctx.beginSection("GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
622 ctx.glGetnUniformfv(program.getProgram(), -1, bufferSize, &params[0]);
627 ctx.glGetnUniformfv(program.getProgram(), unif, 0, &params[0]);
637 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
638 GLint unif = ctx.glGetUniformLocation(program.getProgram(), "fUnif_ivec4");
643 ctx.glUseProgram(program.getProgram());
651 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
656 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
661 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
666 ctx.beginSection("GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
667 ctx.glGetUniformiv (program.getProgram(), -1, &params[0]);
679 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
680 GLint unif = ctx.glGetUniformLocation(program.getProgram(), "fUnif_ivec4");
686 ctx.glUseProgram(program.getProgram());
696 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
701 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
706 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
711 ctx.beginSection("GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
712 ctx.glGetnUniformiv(program.getProgram(), -1, bufferSize, &params[0]);
717 ctx.glGetnUniformiv(program.getProgram(), unif, - 1, &params[0]);
727 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
728 GLint unif = ctx.glGetUniformLocation(program.getProgram(), "fUnif_uvec4");
733 ctx.glUseProgram(program.getProgram());
741 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
746 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
751 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
756 ctx.beginSection("GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
757 ctx.glGetUniformuiv (program.getProgram(), -1, &params[0]);
769 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
770 GLint unif = ctx.glGetUniformLocation(program.getProgram(), "fUnif_ivec4");
776 ctx.glUseProgram(program.getProgram());
786 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
791 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
796 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
801 ctx.beginSection("GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.");
802 ctx.glGetnUniformuiv(program.getProgram(), -1, bufferSize, &params[0]);
807 ctx.glGetnUniformuiv(program.getProgram(), unif, -1, &params[0]);
818 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
821 ctx.glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms);
824 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
829 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
834 ctx.beginSection("GL_INVALID_VALUE is generated if index is greater than or equal to the number of active uniform variables in program.");
835 ctx.glUseProgram(program.getProgram());
836 ctx.glGetActiveUniform(program.getProgram(), numActiveUniforms, 0, 0, 0, 0, 0);
841 ctx.glGetActiveUniform(program.getProgram(), 0, -1, 0, 0, 0, 0);
852 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
857 ctx.glUseProgram(program.getProgram());
859 ctx.glGetProgramiv (program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms);
862 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
867 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
872 ctx.beginSection("GL_INVALID_VALUE is generated if any value in uniformIndices is greater than or equal to the value of GL_ACTIVE_UNIFORMS for program.");
881 ctx.glGetActiveUniformsiv(program.getProgram(), (GLsizei)invalidUniformIndices.size(), &invalidUniformIndices[0], GL_UNIFORM_TYPE, &unusedParamsDst[0]);
887 ctx.glGetActiveUniformsiv(program.getProgram(), 1, &unusedUniformIndex, -1, &unusedParamDst);
897 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
902 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
906 ctx.beginSection("GL_INVALID_VALUE is generated if program is not the name of either a program or shader object.");
911 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the name of a shader object");
916 ctx.beginSection("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.");
917 ctx.glUseProgram(program.getProgram());
919 ctx.glGetActiveUniformBlockiv(program.getProgram(), numActiveBlocks, GL_UNIFORM_BLOCK_BINDING, &params);
924 ctx.glGetActiveUniformBlockiv(program.getProgram(), 0, -1, &params);
933 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
941 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
945 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the name of a shader object.");
950 ctx.beginSection("GL_INVALID_VALUE is generated if program is not the name of either a program or shader object.");
955 ctx.beginSection("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.");
956 ctx.glUseProgram(program.getProgram());
958 ctx.glGetActiveUniformBlockName(program.getProgram(), numActiveBlocks, (int)sizeof(uniformBlockName), &length, &uniformBlockName[0]);
968 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
977 ctx.glGetProgramiv (program.getProgram(), GL_ACTIVE_ATTRIBUTES, &numActiveAttributes);
980 ctx.glUseProgram(program.getProgram());
982 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
987 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
993 ctx.glGetActiveAttrib(program.getProgram(), numActiveAttributes, (int)sizeof(name), &length, &size, &type, &name[0]);
998 ctx.glGetActiveAttrib(program.getProgram(), 0, -1, &length, &size, &type, &name[0]);
1009 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(getVtxFragVersionSources(uniformTestVertSource, ctx), getVtxFragVersionSources(uniformTestFragSource, ctx)));
1015 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
1019 ctx.beginSection("GL_INVALID_OPERATION is generated if program is a name of shader object.");
1024 ctx.beginSection("GL_INVALID_VALUE is generated if program is not name of program or shader object.");
1126 GLuint program = ctx.glCreateProgram();
1128 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the name of a shader object.");
1133 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been linked.");
1134 ctx.glGetFragDataLocation(program, "gl_FragColor");
1138 ctx.glDeleteProgram(program);