Lines Matching defs:program

122 	GLuint program = ctx.glCreateProgram();
123 ctx.glShaderSource(program, 0, 0, 0);
127 ctx.glDeleteProgram(program);
142 GLuint program = ctx.glCreateProgram();
143 ctx.glCompileShader(program);
147 ctx.glDeleteProgram(program);
222 ctx.beginSection("GL_INVALID_VALUE is generated if shaders contains anything other than shader or program objects.");
227 ctx.beginSection("GL_INVALID_OPERATION is generated if shaders refers to a program object.");
241 GLuint program = ctx.glCreateProgram();
249 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
255 ctx.glAttachShader(program, program);
257 ctx.glAttachShader(shader1, program);
261 ctx.beginSection("GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
262 ctx.glAttachShader(program, notAShader);
270 ctx.beginSection("GL_INVALID_OPERATION is generated if shader is already attached to program.");
271 ctx.glAttachShader(program, shader1);
273 ctx.glAttachShader(program, shader1);
279 ctx.beginSection("GL_INVALID_OPERATION is generated if a shader of the same type as shader is already attached to program.");
280 ctx.glAttachShader(program, shader2);
285 ctx.glDeleteProgram(program);
293 GLuint program = ctx.glCreateProgram();
301 ctx.beginSection("GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.");
304 ctx.glDetachShader(program, notAShader);
310 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
316 ctx.glDetachShader(program, program);
318 ctx.glDetachShader(shader, program);
322 ctx.beginSection("GL_INVALID_OPERATION is generated if shader is not attached to program.");
323 ctx.glDetachShader(program, shader);
327 ctx.glDeleteProgram(program);
338 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
343 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
350 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the currently active program object and transform feedback mode is active.");
351 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
359 ctx.glUseProgram (program.getProgram());
360 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
361 ctx.glLinkProgram (program.getProgram());
369 ctx.glLinkProgram (program.getProgram());
386 ctx.beginSection("GL_INVALID_VALUE is generated if program is neither 0 nor a value generated by OpenGL.");
391 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
440 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
445 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not zero and is the name of a shader object.");
460 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
465 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
475 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
483 ctx.beginSection("GL_INVALID_OPERATION is generated if bufSize is less than the size of GL_PROGRAM_BINARY_LENGTH for program.");
484 ctx.glGetProgramiv (program.getProgram(), GL_PROGRAM_BINARY_LENGTH, &bufSize);
486 ctx.glGetProgramiv (program.getProgram(), GL_LINK_STATUS, &linkStatus);
491 ctx.glGetProgramBinary (program.getProgram(), 0, &binaryLength, &binaryFormat, &binaryPtr);
495 ctx.glGetProgramBinary (program.getProgram(), bufSize-1, &binaryLength, &binaryFormat, &binaryPtr);
500 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_LINK_STATUS for the program object is false.");
544 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not the name of an existing program object.");
561 GLuint program = ctx.glCreateProgram();
567 ctx.beginSection("GL_INVALID_VALUE is generated if program is not the name of an existing program object.");
572 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the name of a shader object.");
578 ctx.glProgramParameteri(program, -1, GL_TRUE);
583 ctx.glProgramParameteri(program, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, 2);
587 ctx.glDeleteProgram(program);
861 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
866 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
872 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a program or shader object.");
873 ctx.glUseProgram (program.getProgram());
874 ctx.glBindAttribLocation (program.getProgram(), 0, "test");
876 ctx.glGetAttribLocation (program.getProgram(), "test");
882 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
897 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
902 ctx.beginSection("GL_INVALID_OPERATION is generated if program has not been successfully linked.");
907 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
908 ctx.glUseProgram(program.getProgram());
913 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
925 GLuint program = ctx.glCreateProgram();
930 ctx.glBindAttribLocation(program, maxIndex, "test");
935 ctx.glBindAttribLocation(program, maxIndex-1, "gl_test");
939 ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
944 ctx.beginSection("GL_INVALID_OPERATION is generated if program is not a program object.");
949 ctx.glDeleteProgram(program);
959 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformBlockVertSource, uniformTestFragSource));
962 ctx.glUseProgram(program.getProgram());
965 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORMS, &numActiveUniforms);
966 ctx.glGetProgramiv(program.getProgram(), GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks);
972 ctx.beginSection("GL_INVALID_VALUE is generated if uniformBlockIndex is not an active uniform block index of program.");
973 ctx.glUniformBlockBinding(program.getProgram(), -1, 0);
975 ctx.glUniformBlockBinding(program.getProgram(), 5, 0);
980 ctx.glUniformBlockBinding(program.getProgram(), maxUniformBufferBindings, 0);
984 ctx.beginSection("GL_INVALID_VALUE is generated if program is not the name of a program object generated by the GL.");
989 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the name of a shader object.");
1001 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1016 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1018 ctx.glUseProgram(program.getProgram());
1019 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1020 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1021 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1022 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1032 ctx.glUseProgram(program.getProgram());
1044 ctx.glUseProgram(program.getProgram());
1052 ctx.glUseProgram(program.getProgram());
1062 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1064 ctx.glUseProgram(program.getProgram());
1067 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1068 ctx.glUseProgram(program.getProgram());
1078 ctx.glUseProgram(program.getProgram());
1098 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1113 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1115 ctx.glUseProgram(program.getProgram());
1116 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1117 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1118 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1119 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1131 ctx.glUseProgram(program.getProgram());
1143 ctx.glUseProgram(program.getProgram());
1151 ctx.glUseProgram(program.getProgram());
1161 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1163 ctx.glUseProgram(program.getProgram());
1168 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1169 ctx.glUseProgram(program.getProgram());
1179 ctx.glUseProgram(program.getProgram());
1195 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1197 ctx.glUseProgram (program.getProgram());
1198 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1210 ctx.glUseProgram(program.getProgram());
1228 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1243 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1245 ctx.glUseProgram(program.getProgram());
1246 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1247 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1248 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1249 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1259 ctx.glUseProgram(program.getProgram());
1271 ctx.glUseProgram(program.getProgram());
1283 ctx.glUseProgram(program.getProgram());
1299 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1301 ctx.glUseProgram(program.getProgram());
1304 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1305 ctx.glUseProgram(program.getProgram());
1315 ctx.glUseProgram(program.getProgram());
1335 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1350 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1352 ctx.glUseProgram(program.getProgram());
1353 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1354 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1355 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1356 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1368 ctx.glUseProgram(program.getProgram());
1380 ctx.glUseProgram(program.getProgram());
1392 ctx.glUseProgram(program.getProgram());
1408 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1410 ctx.glUseProgram(program.getProgram());
1415 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1416 ctx.glUseProgram(program.getProgram());
1426 ctx.glUseProgram(program.getProgram());
1442 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1444 ctx.glUseProgram (program.getProgram());
1445 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1457 ctx.glUseProgram(program.getProgram());
1475 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1490 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1492 ctx.glUseProgram(program.getProgram());
1493 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1494 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1495 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1496 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1506 ctx.glUseProgram(program.getProgram());
1518 ctx.glUseProgram(program.getProgram());
1530 ctx.glUseProgram(program.getProgram());
1542 ctx.glUseProgram(program.getProgram());
1552 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1554 ctx.glUseProgram(program.getProgram());
1557 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1558 ctx.glUseProgram(program.getProgram());
1568 ctx.glUseProgram(program.getProgram());
1588 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1603 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1605 ctx.glUseProgram(program.getProgram());
1606 GLint vec4_v = ctx.glGetUniformLocation(program.getProgram(), "vec4_v"); // vec4
1607 GLint ivec4_f = ctx.glGetUniformLocation(program.getProgram(), "ivec4_f"); // ivec4
1608 GLint uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1609 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1621 ctx.glUseProgram(program.getProgram());
1633 ctx.glUseProgram(program.getProgram());
1645 ctx.glUseProgram(program.getProgram());
1657 ctx.glUseProgram(program.getProgram());
1667 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1669 ctx.glUseProgram(program.getProgram());
1674 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1675 ctx.glUseProgram(program.getProgram());
1685 ctx.glUseProgram(program.getProgram());
1701 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1703 ctx.glUseProgram (program.getProgram());
1704 int uvec4_f = ctx.glGetUniformLocation(program.getProgram(), "uvec4_f"); // uvec4
1716 ctx.glUseProgram(program.getProgram());
1737 ctx.beginSection("GL_INVALID_OPERATION is generated if there is no current program object.");
1763 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1765 ctx.glUseProgram (program.getProgram());
1766 GLint mat4_v = ctx.glGetUniformLocation(program.getProgram(), "mat4_v"); // mat4
1767 GLint sampler_f = ctx.glGetUniformLocation(program.getProgram(), "sampler_f"); // sampler2D
1779 ctx.glUseProgram(program.getProgram());
1802 ctx.glUseProgram(program.getProgram());
1829 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1831 ctx.glUseProgram(program.getProgram());
1836 ctx.beginSection("GL_INVALID_OPERATION is generated if location is an invalid uniform location for the current program object and location is not equal to -1.");
1837 ctx.glUseProgram(program.getProgram());
1858 ctx.glUseProgram(program.getProgram());
1885 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(uniformTestVertSource, uniformTestFragSource));
1887 ctx.glUseProgram (program.getProgram());
1888 GLint mat4_v = ctx.glGetUniformLocation(program.getProgram(), "mat4_v"); // mat4
1900 ctx.glUseProgram(program.getProgram());
1938 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
1951 ctx.glUseProgram (program.getProgram());
1952 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
1953 ctx.glLinkProgram (program.getProgram());
1990 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2002 ctx.glUseProgram(program.getProgram());
2003 ctx.glTransformFeedbackVaryings(program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2004 ctx.glLinkProgram(program.getProgram());
2032 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2039 ctx.glUseProgram (program.getProgram());
2040 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2041 ctx.glLinkProgram (program.getProgram());
2067 ctx.beginSection("GL_INVALID_OPERATION is generated if no binding points would be used because no program object is active.");
2071 ctx.glUseProgram (program.getProgram());
2074 ctx.beginSection("GL_INVALID_OPERATION is generated if no binding points would be used because the active program object has specified no varying variables to record.");
2075 ctx.glTransformFeedbackVaryings (program.getProgram(), 0, 0, GL_INTERLEAVED_ATTRIBS);
2089 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2096 ctx.glUseProgram (program.getProgram());
2097 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2098 ctx.glLinkProgram (program.getProgram());
2124 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2131 ctx.glUseProgram (program.getProgram());
2132 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2133 ctx.glLinkProgram (program.getProgram());
2160 glu::ShaderProgram program(ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2167 ctx.glUseProgram (program.getProgram());
2168 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2169 ctx.glLinkProgram (program.getProgram());
2192 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2207 ctx.glTransformFeedbackVaryings (program.getProgram(), 1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2209 ctx.glLinkProgram (program.getProgram());
2215 ctx.beginSection("GL_INVALID_VALUE is generated if program is not the name of a program object.");
2221 ctx.glGetProgramiv (program.getProgram(), GL_TRANSFORM_FEEDBACK_VARYINGS, &maxTransformFeedbackVaryings);
2222 ctx.glGetTransformFeedbackVarying (program.getProgram(), maxTransformFeedbackVaryings, 32, &length, &size, &type, &name[0]);
2226 ctx.beginSection("GL_INVALID_OPERATION or GL_INVALID_VALUE is generated program has not been linked.");
2239 glu::ShaderProgram program (ctx.getRenderContext(), glu::makeVtxFragSources(vertexShaderSource, fragmentShaderSource));
2249 ctx.beginSection("GL_INVALID_VALUE is generated if program is not the name of a program object.");
2254 ctx.beginSection("GL_INVALID_OPERATION is generated if program is the name of a shader object.");
2261 ctx.glTransformFeedbackVaryings(program.getProgram(), -1, &tfVarying, GL_INTERLEAVED_ATTRIBS);
2266 ctx.glTransformFeedbackVaryings(program.getProgram(), 1, &tfVarying, 0);
2272 ctx.glTransformFeedbackVaryings (program.getProgram(), maxTransformFeedbackSeparateAttribs+1, &tfVarying, GL_SEPARATE_ATTRIBS);
2300 GLuint program = ctx.glCreateProgram();
2313 ctx.glAttachShader(program, computeShader);
2314 ctx.glAttachShader(program, otherShader);
2315 ctx.glLinkProgram(program);
2316 ctx.glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
2319 ctx.glDeleteProgram(program);
2331 GLuint program = ctx.glCreateProgram();
2340 ctx.glAttachShader(program, computeShader);
2341 ctx.glAttachShader(program, computeShader310);
2342 ctx.glLinkProgram(program);
2343 ctx.glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
2346 ctx.glDeleteProgram(program);