Lines Matching refs:ctx
331 void logProgramInfo(NegativeTestContext& ctx, GLint program)
335 tcu::TestLog& log = ctx.getLog();
337 ctx.glGetProgramiv(program, GL_INFO_LOG_LENGTH, &maxLength);
350 ctx.glGetProgramInfoLog(program, maxLength, &maxLength, &infoLog[0]);
356 void ssbo_block_matching(NegativeTestContext& ctx)
358 const bool isES32 = contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2));
360 tcu::TestLog& log = ctx.getLog();
382 shaderVertexGL = ctx.glCreateShader(GL_VERTEX_SHADER);
389 ctx.glShaderSource(shaderVertexGL, 1, &shaderVertexCharPtr, DE_NULL);
390 ctx.glCompileShader(shaderVertexGL);
400 ctx.beginSection("Multiple shaders created using SSBO's sharing the same name but not matching layouts");
402 program = ctx.glCreateProgram();
411 shaderFragmentGL = ctx.glCreateShader(GL_FRAGMENT_SHADER);
418 ctx.glShaderSource(shaderFragmentGL, 1, &shaderFragmentCharPtr, DE_NULL);
419 ctx.glCompileShader(shaderFragmentGL);
422 ctx.glAttachShader(program, shaderVertexGL);
423 ctx.glAttachShader(program, shaderFragmentGL);
424 ctx.glLinkProgram(program);
425 ctx.glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
427 logProgramInfo(ctx, program);
431 ctx.fail("Program should not have linked");
435 ctx.glDeleteShader(shaderFragmentGL);
436 ctx.glDeleteProgram(program);
438 ctx.endSection();
442 ctx.glDeleteShader(shaderVertexGL);
445 void ssbo_block_shared_qualifier(NegativeTestContext& ctx)
447 const bool isES32 = contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2));
449 tcu::TestLog& log = ctx.getLog();
486 shaderVertexGL = ctx.glCreateShader(GL_VERTEX_SHADER);
493 ctx.glShaderSource(shaderVertexGL, 1, &shaderVertexCharPtr, DE_NULL);
494 ctx.glCompileShader(shaderVertexGL);
504 ctx.beginSection("Multiple shaders created using SSBO's sharing the same name but not matching layouts");
506 program = ctx.glCreateProgram();
515 shaderFragmentGL = ctx.glCreateShader(GL_FRAGMENT_SHADER);
522 ctx.glShaderSource(shaderFragmentGL, 1, &shaderFragmentCharPtr, DE_NULL);
523 ctx.glCompileShader(shaderFragmentGL);
526 ctx.glAttachShader(program, shaderVertexGL);
527 ctx.glAttachShader(program, shaderFragmentGL);
528 ctx.glLinkProgram(program);
529 ctx.glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
531 logProgramInfo(ctx, program);
535 ctx.fail("Program should not have linked");
539 ctx.glDeleteShader(shaderFragmentGL);
540 ctx.glDeleteProgram(program);
542 ctx.endSection();
546 ctx.glDeleteShader(shaderVertexGL);