Lines Matching defs:program
86 void verifyLinkError (NegativeTestContext& ctx, const glu::ShaderProgram& program)
91 log << program;
93 testFailed = program.getProgramInfo().linkOk;
103 void verifyCompileError (NegativeTestContext& ctx, const glu::ShaderProgram& program, glu::ShaderType shaderType)
108 log << program;
110 testFailed = program.getShaderInfo(shaderType).compileOk;
194 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
198 verifyLinkError(ctx, program);
212 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
216 verifyLinkError(ctx, program);
236 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
241 log << program;
243 if (program.getProgramInfo().linkOk)
245 log << tcu::TestLog::Message << "Quality Warning: program was not expected to link." << tcu::TestLog::EndMessage;
246 ctx.glUseProgram(program.getProgram());
249 ctx.beginSection("GL_INVALID_OPERATION error is generated if the sum of the number of active samplers for each active program exceeds the maximum number of texture image units allowed");
272 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
276 verifyLinkError(ctx, program);
295 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
299 verifyLinkError(ctx, program);
318 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
322 verifyLinkError(ctx, program);
350 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
354 verifyLinkError(ctx, program);
375 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
379 verifyLinkError(ctx, program);
401 TCU_THROW(InternalError, "failed to build program");
408 ctx.beginSection("GL_INVALID_OPERATION is generated by glDispatchCompute if there is no active program for the compute shader stage.");
413 ctx.beginSection("GL_INVALID_OPERATION is generated by glDispatchComputeIndirect if there is no active program for the compute shader stage.");
427 ctx.beginSection("GL_INVALID_OPERATION is generated by glDispatchCompute if there is no active program for the compute shader stage.");
432 ctx.beginSection("GL_INVALID_OPERATION is generated by glDispatchComputeIndirect if there is no active program for the compute shader stage.");
461 TCU_THROW(InternalError, "program should not of built");
463 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_COMPUTE_WORK_GROUP_SIZE is queried for a program which has not been linked properly.");
482 TCU_THROW(InternalError, "failed to build program");
484 ctx.beginSection("GL_INVALID_OPERATION is generated if GL_COMPUTE_WORK_GROUP_SIZE is queried for a program which has not been linked properly.");
501 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
504 log << program;
506 if (!program.isOk())
507 TCU_THROW(InternalError, "failed to build program");
509 ctx.glUseProgram(program.getProgram());
592 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
595 log << program;
597 if (!program.isOk())
598 TCU_THROW(InternalError, "failed to build program");
600 ctx.glUseProgram(program.getProgram());
680 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
687 ctx.getLog() << program;
688 testFailed = (program.getProgramInfo().linkOk) && (program.getShaderInfo(glu::SHADERTYPE_COMPUTE).compileOk);
700 verifyCompileError(ctx, program, glu::SHADERTYPE_COMPUTE);
722 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
724 ctx.beginSection("A link error is generated if the compute shader program does not contain an input layout qualifier specifying a fixed local group size.");
725 verifyLinkError(ctx, program);
739 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
742 verifyCompileError(ctx, program, glu::SHADERTYPE_COMPUTE);
757 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
760 verifyCompileError(ctx, program, glu::SHADERTYPE_COMPUTE);
764 if (glu::isContextTypeES(ctx.getRenderContext().getType())) // for GL4.5 program will compile and link
781 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource);
787 log << program;
789 testFailed = (program.getProgramInfo().linkOk) && (program.getShaderInfo(glu::SHADERTYPE_COMPUTE).compileOk);
855 { program_not_active, "program_not_active", "Use dispatch commands with no active program" },