Lines Matching refs:glu
77 void verifyProgramError (NegativeTestContext& ctx, const glu::ShaderProgram& program, ProgramError error, glu::ShaderType shaderType)
121 if (!glu::isContextTypeES(ctx.getRenderContext().getType()))
126 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2));
128 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES);
139 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
140 << glu::VertexSource(tcu::StringTemplate(vertexShaderSource).specialize(args))
141 << glu::FragmentSource(tcu::StringTemplate(fragShaderSource).specialize(args)));
144 verifyProgramError(ctx, program, PROGRAM_ERROR_LINK, glu::SHADERTYPE_FRAGMENT);
155 args["GLSL_VERSION_STRING"] = getGLSLVersionDeclaration(glu::GLSL_VERSION_100_ES);
166 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
167 << glu::VertexSource(tcu::StringTemplate(vertexShaderSource).specialize(args))
168 << glu::FragmentSource(tcu::StringTemplate(fragShaderSource).specialize(args)));
171 verifyProgramError(ctx, program, PROGRAM_ERROR_COMPILE_OR_LINK, glu::SHADERTYPE_FRAGMENT);
180 args["GLSL_VERSION_STRING"] = getGLSLVersionDeclaration(glu::GLSL_VERSION_100_ES);
192 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
193 << glu::VertexSource(tcu::StringTemplate(vertexShaderSource).specialize(args))
194 << glu::FragmentSource(tcu::StringTemplate(fragShaderSource).specialize(args)));
197 verifyProgramError(ctx, program, PROGRAM_ERROR_COMPILE_OR_LINK, glu::SHADERTYPE_FRAGMENT);
204 if (!glu::isContextTypeES(ctx.getRenderContext().getType()))
209 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2));
211 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES);
224 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
225 << glu::VertexSource(tcu::StringTemplate(vertexShaderSource).specialize(args))
226 << glu::FragmentSource(tcu::StringTemplate(fragShaderSource).specialize(args)));
229 verifyProgramError(ctx, program, PROGRAM_ERROR_COMPILE_OR_LINK, glu::SHADERTYPE_FRAGMENT);
236 if (!glu::isContextTypeES(ctx.getRenderContext().getType()))
241 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2));
243 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES);
253 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources()
254 << glu::VertexSource(tcu::StringTemplate(vertShaderSource).specialize(args))
255 << glu::FragmentSource(tcu::StringTemplate(fragmentShaderSource).specialize(args)));
258 verifyProgramError(ctx, program, PROGRAM_ERROR_COMPILE_OR_LINK, glu::SHADERTYPE_VERTEX);