Lines Matching defs:gl
163 const glw::Functions& gl = renderCtx.getFunctions();
167 gl.getIntegerv(m_enumName, &value);
168 error = gl.getError();
224 BeforeDrawValidator (const glw::Functions& gl, glw::GLuint target, TargetType targetType);
240 BeforeDrawValidator::BeforeDrawValidator (const glw::Functions& gl, glw::GLuint target, TargetType targetType)
241 : m_gl (gl)
490 static void setUniformValue (const glw::Functions& gl, const std::vector<deUint32>& pipelinePrograms, const std::string& name, const ShaderCase::Value& val, int arrayNdx, tcu::TestLog& log)
497 const int loc = gl.getUniformLocation(pipelinePrograms[programNdx], name.c_str());
508 gl.useProgram(pipelinePrograms[programNdx]);
512 case TYPE_FLOAT: gl.uniform1fv(loc, 1, &val.elements[elemNdx].float32); break;
513 case TYPE_FLOAT_VEC2: gl.uniform2fv(loc, 1, &val.elements[elemNdx].float32); break;
514 case TYPE_FLOAT_VEC3: gl.uniform3fv(loc, 1, &val.elements[elemNdx].float32); break;
515 case TYPE_FLOAT_VEC4: gl.uniform4fv(loc, 1, &val.elements[elemNdx].float32); break;
516 case TYPE_FLOAT_MAT2: gl.uniformMatrix2fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
517 case TYPE_FLOAT_MAT3: gl.uniformMatrix3fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
518 case TYPE_FLOAT_MAT4: gl.uniformMatrix4fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
519 case TYPE_INT: gl.uniform1iv(loc, 1, &val.elements[elemNdx].int32); break;
520 case TYPE_INT_VEC2: gl.uniform2iv(loc, 1, &val.elements[elemNdx].int32); break;
521 case TYPE_INT_VEC3: gl.uniform3iv(loc, 1, &val.elements[elemNdx].int32); break;
522 case TYPE_INT_VEC4: gl.uniform4iv(loc, 1, &val.elements[elemNdx].int32); break;
523 case TYPE_BOOL: gl.uniform1iv(loc, 1, &val.elements[elemNdx].int32); break;
524 case TYPE_BOOL_VEC2: gl.uniform2iv(loc, 1, &val.elements[elemNdx].int32); break;
525 case TYPE_BOOL_VEC3: gl.uniform3iv(loc, 1, &val.elements[elemNdx].int32); break;
526 case TYPE_BOOL_VEC4: gl.uniform4iv(loc, 1, &val.elements[elemNdx].int32); break;
527 case TYPE_UINT: gl.uniform1uiv(loc, 1, (const deUint32*)&val.elements[elemNdx].int32); break;
528 case TYPE_UINT_VEC2: gl.uniform2uiv(loc, 1, (const deUint32*)&val.elements[elemNdx].int32); break;
529 case TYPE_UINT_VEC3: gl.uniform3uiv(loc, 1, (const deUint32*)&val.elements[elemNdx].int32); break;
530 case TYPE_UINT_VEC4: gl.uniform4uiv(loc, 1, (const deUint32*)&val.elements[elemNdx].int32); break;
531 case TYPE_FLOAT_MAT2X3: gl.uniformMatrix2x3fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
532 case TYPE_FLOAT_MAT2X4: gl.uniformMatrix2x4fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
533 case TYPE_FLOAT_MAT3X2: gl.uniformMatrix3x2fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
534 case TYPE_FLOAT_MAT3X4: gl.uniformMatrix3x4fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
535 case TYPE_FLOAT_MAT4X2: gl.uniformMatrix4x2fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
536 case TYPE_FLOAT_MAT4X3: gl.uniformMatrix4x3fv(loc, 1, GL_FALSE, &val.elements[elemNdx].float32); break;
624 const glw::Functions& gl = m_renderCtx.getFunctions();
645 GLU_EXPECT_NO_ERROR(gl.getError(), "ShaderCase::execute(): start");
768 gl.viewport(viewportX, viewportY, width, height);
775 gl.bindProgramPipeline(programPipeline->getPipeline());
787 GLU_EXPECT_NO_ERROR(gl.getError(), "setup pipeline");
792 gl.useProgram(vertexProgramID);
793 GLU_EXPECT_NO_ERROR(gl.getError(), "glUseProgram()");
797 int positionLoc = gl.getAttribLocation(vertexProgramID, "dEQP_Position");
820 BeforeDrawValidator beforeDrawValidator (gl,
867 int attribLoc = gl.getAttribLocation(vertexProgramID, attribName.c_str());
889 GLU_EXPECT_NO_ERROR(gl.getError(), "set vertex attrib array");
893 GLU_EXPECT_NO_ERROR(gl.getError(), "before set uniforms");
905 setUniformValue(gl, pipelineProgramIDs, refName, val, arrayNdx, m_testCtx.getLog());
906 GLU_EXPECT_NO_ERROR(gl.getError(), "set reference uniforms");
910 setUniformValue(gl, pipelineProgramIDs, valueName, val, arrayNdx, m_testCtx.getLog());
911 GLU_EXPECT_NO_ERROR(gl.getError(), "set uniforms");
916 gl
917 gl.clear(GL_COLOR_BUFFER_BIT);
918 GLU_EXPECT_NO_ERROR(gl.getError(), "clear buffer");
922 gl.useProgram(0);
924 gl.useProgram(vertexProgramID);
929 gl.patchParameteri(GL_PATCH_VERTICES, 3);
930 GLU_EXPECT_NO_ERROR(gl.getError(), "set patchParameteri(PATCH_VERTICES, 3)");
944 postDrawError = gl.getError();
959 GLU_EXPECT_NO_ERROR(gl.getError(), "read pixels");
973 gl.useProgram(0);
1027 gl.useProgram(0);
1029 gl.bindProgramPipeline(0);
1031 GLU_EXPECT_NO_ERROR(gl.getError(), "ShaderCase::execute(): end");