Lines Matching defs:program
141 glu::ShaderProgram program(ctx.getRenderContext(),
147 log << program;
149 ctx.beginSection("A link error is generated if a non-separable program has a tessellation control shader but no tessellation evaluation shader, unless GL_NV_gpu_shader5 is supported.");
151 if (requireTES && program.isOk())
153 else if (!requireTES && !program.isOk())
160 glu::ShaderProgram program(ctx.getRenderContext(),
167 log << program;
169 if (!program.isOk())
170 TCU_THROW(TestError, "failed to build program");
172 ctx.glUseProgram(program.getProgram());
175 ctx.beginSection("GL_INVALID_OPERATION is generated if current program state has tessellation control shader but no tessellation evaluation shader, unless GL_NV_gpu_shader5 is supported.");
184 glu::ShaderProgram program(ctx.getRenderContext(),
190 log << program;
192 ctx.beginSection("A link error is generated if a non-separable program has a tessellation evaluation shader but no tessellation control shader.");
194 if (program.isOk())
201 glu::ShaderProgram program(ctx.getRenderContext(),
208 log << program;
210 if (!program.isOk())
211 TCU_THROW(TestError, "failed to build program");
213 ctx.glUseProgram(program.getProgram());
216 ctx.beginSection("GL_INVALID_OPERATION is generated if current program state has tessellation evaluation shader but no tessellation control shader.");
231 glu::ShaderProgram program(ctx.getRenderContext(),
237 log << program;
239 ctx.glUseProgram(program.getProgram());
256 glu::ShaderProgram program(ctx.getRenderContext(),
262 log << program;
271 ctx.glUseProgram(program.getProgram());
314 throw tcu::TestError("failed to build program");
357 glu::ShaderProgram program(ctx.getRenderContext(),
363 log << program;
365 bool testFailed = program.getProgramInfo().linkOk;
377 GLuint program = ctx.glCreateProgram();
380 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_TESS_CONTROL_OUTPUT_VERTICES is queried for a program which has not been linked properly.");
381 ctx.glGetProgramiv(program, GL_TESS_CONTROL_OUTPUT_VERTICES, ¶ms[0]);
385 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_TESS_GEN_MODE is queried for a program which has not been linked properly.");
386 ctx.glGetProgramiv(program, GL_TESS_GEN_MODE, ¶ms[0]);
390 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_TESS_GEN_SPACING is queried for a program which has not been linked properly.");
391 ctx.glGetProgramiv(program, GL_TESS_GEN_SPACING, ¶ms[0]);
395 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_TESS_GEN_VERTEX_ORDER is queried for a program which has not been linked properly.");
396 ctx.glGetProgramiv(program, GL_TESS_GEN_VERTEX_ORDER, ¶ms[0]);
400 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_TESS_GEN_POINT_MODE is queried for a program which has not been linked properly.");
401 ctx.glGetProgramiv(program, GL_TESS_GEN_POINT_MODE, ¶ms[0]);
405 ctx.glDeleteProgram(program);
436 { single_tessellation_stage, "single_tessellation_stage", "Invalid program state with single tessellation stage" },
439 { invalid_program_state, "invalid_program_state", "Invalid program state when tessellation active but no vertex shader present" },