• Home
  • Raw
  • Download

Lines Matching refs:program

188 void drawWithProgram (glu::RenderContext& renderCtx, deUint32 program)  in drawWithProgram()  argument
201 gl.useProgram(program); in drawWithProgram()
208 …glu::draw(renderCtx, program, DE_LENGTH_OF_ARRAY(vertexArrays), &vertexArrays[0], glu::pr::Triangl… in drawWithProgram()
348 void logProgram (TestLog& log, glu::RenderContext& renderCtx, glu::Program& program, ShaderAllocato… in logProgram() argument
350 log << TestLog::ShaderProgram(program.getLinkStatus(), program.getInfoLog()); in logProgram()
363 void logVertexFragmentProgram (TestLog& log, glu::RenderContext& renderCtx, glu::Program& program, … in logVertexFragmentProgram() argument
367 log << TestLog::ShaderProgram(program.getLinkStatus(), program.getInfoLog()); in logVertexFragmentProgram()
482 const GLuint program = glCreateProgram(); in linkProgram() local
484 TCU_CHECK(program != 0); in linkProgram()
486 glAttachShader(program, m_vertShader); in linkProgram()
487 glAttachShader(program, m_fragShader); in linkProgram()
490 glLinkProgram(program); in linkProgram()
492 m_program = program; in linkProgram()
768 glu::Program program (renderCtx); in buildProgram() local
773 program.attachShader(shader.getShader()); in buildProgram()
774 program.attachShader(supportShader.getShader()); in buildProgram()
776 program.link(); in buildProgram()
779 logVertexFragmentProgram(log, renderCtx, program, shader, supportShader); in buildProgram()
781 logVertexFragmentProgram(log, renderCtx, program, supportShader, shader); in buildProgram()
823 void buildProgram (glu::Program& program, ShaderAllocator& shaders);
824 void verify (glu::Program& program, const glu::ProgramInfo& reference);
828 virtual void executeForProgram (glu::Program& program, ShaderAllocator& shaders) = 0;
843 void ProgramStateCase::buildProgram (glu::Program& program, ShaderAllocator& shaders) in buildProgram() argument
853 program.attachShader(vertShader.getShader()); in buildProgram()
854 program.attachShader(fragShader.getShader()); in buildProgram()
855 program.link(); in buildProgram()
857 logProgram(log, m_context.getRenderContext(), program, shaders); in buildProgram()
860 void ProgramStateCase::verify (glu::Program& program, const glu::ProgramInfo& reference) in verify() argument
863 const glu::ProgramInfo& programInfo = program.getInfo(); in verify()
892 glu::Program program (renderCtx); in test() local
894 buildProgram(program, shaders); in test()
896 if (program.getLinkStatus()) in test()
898 glu::ProgramInfo programInfo = program.getInfo(); in test()
900 executeForProgram(program, shaders); in test()
902 verify(program, programInfo); in test()
904 logProgram(log, renderCtx, program, shaders); in test()
949 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
955 program.detachShader(caseShader.getShader()); in executeForProgram()
971 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
977 program.detachShader(caseShader.getShader()); in executeForProgram()
978 program.attachShader(caseShader.getShader()); in executeForProgram()
994 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1000 program.detachShader(caseShader.getShader()); in executeForProgram()
1017 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1023 program.detachShader(caseShader.getShader()); in executeForProgram()
1025 program.attachShader(shaders.createShader(m_shaderType).getShader()); in executeForProgram()
1041 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1048 DE_UNREF(program); in executeForProgram()
1064 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1072 DE_UNREF(program); in executeForProgram()
1108 void getProgramBinary (ProgramBinary& out, GLuint program);
1109 void loadProgramBinary (ProgramBinary& binary, GLuint program);
1152 void ProgramBinaryCase::getProgramBinary (ProgramBinary& out, GLuint program) in getProgramBinary() argument
1155 glGetProgramiv(program, GL_PROGRAM_BINARY_LENGTH, &binaryLength); in getProgramBinary()
1165 …GLU_CHECK_CALL(glGetProgramBinary(program, (GLsizei)out.data.size(), &actualLength, &format, &(out… in getProgramBinary()
1173 void ProgramBinaryCase::loadProgramBinary (ProgramBinary& binary, GLuint program) in loadProgramBinary() argument
1175 glProgramBinary(program, binary.format, &binary.data[0], (GLsizei)binary.data.size()); in loadProgramBinary()
1238 glu::ShaderProgram program (m_context.getRenderContext(), sources); in test() local
1240 if (program.isOk()) in test()
1244 getProgramBinary(binary, program.getProgram()); in test()
1294 void setUniformsRandom (glu::ShaderProgram& program) in setUniformsRandom() argument
1297 const deUint32 glProg = program.getProgram(); in setUniformsRandom()
1317 void verifyUniformInt (glu::ShaderProgram& program, const std::string& name) in verifyUniformInt() argument
1319 const GLint intLoc = glGetUniformLocation(program.getProgram(), name.c_str()); in verifyUniformInt()
1322 glGetUniformiv(program.getProgram(), intLoc, &intVar); in verifyUniformInt()
1331 void verifyUniformFloat (glu::ShaderProgram& program, const std::string& name) in verifyUniformFloat() argument
1333 const GLint floatLoc = glGetUniformLocation(program.getProgram(), name.c_str()); in verifyUniformFloat()
1336 glGetUniformfv(program.getProgram(), floatLoc, &floatVar); in verifyUniformFloat()
1345 void verifyUniformsReset (glu::ShaderProgram& program) in verifyUniformsReset() argument
1349 verifyUniformInt (program, "u_boolVar"); in verifyUniformsReset()
1350 verifyUniformInt (program, "u_intVar"); in verifyUniformsReset()
1351 verifyUniformFloat (program, "u_floatVar"); in verifyUniformsReset()
1363 glu::ShaderProgram program (m_context.getRenderContext(), sources); in test() local
1365 log << program; in test()
1367 TCU_CHECK_MSG(program.isOk(), "Couldn't build program"); in test()
1372 getProgramBinary(binary, program.getProgram()); in test()
1375 setUniformsRandom(program); in test()
1379 drawWithProgram(m_context.getRenderContext(), program.getProgram()); in test()
1380 loadProgramBinary(binary, program.getProgram()); in test()
1382 verifyUniformsReset(program); in test()
1397 void buildProgram (glu::Program& program, ShaderAllocator& shaders);
1401 virtual void executeForProgram (glu::Program& program, ShaderAllocator& shaders) = 0;
1402 virtual void verify (glu::Program& program, const ProgramBinary& binary);
1417 void ProgramBinaryPersistenceCase::buildProgram (glu::Program& program, ShaderAllocator& shaders) in buildProgram() argument
1427 program.attachShader(vertShader.getShader()); in buildProgram()
1428 program.attachShader(fragShader.getShader()); in buildProgram()
1429 program.link(); in buildProgram()
1431 logProgram(log, m_context.getRenderContext(), program, shaders); in buildProgram()
1434 void ProgramBinaryPersistenceCase::verify (glu::Program& program, const ProgramBinary& binary) in verify() argument
1439 getProgramBinary(currentBinary, program.getProgram()); in verify()
1456 glu::Program program (renderCtx); in test() local
1458 buildProgram(program, shaders); in test()
1460 if (program.getLinkStatus()) in test()
1463 getProgramBinary(binary, program.getProgram()); in test()
1465 executeForProgram(program, shaders); in test()
1467 verify(program, binary); in test()
1469 logProgram(log, renderCtx, program, shaders); in test()
1514 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1520 program.detachShader(caseShader.getShader()); in executeForProgram()
1536 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1542 program.detachShader(caseShader.getShader()); in executeForProgram()
1543 program.attachShader(caseShader.getShader()); in executeForProgram()
1559 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1565 program.detachShader(caseShader.getShader()); in executeForProgram()
1582 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1588 program.detachShader(caseShader.getShader()); in executeForProgram()
1590 program.attachShader(shaders.createShader(m_shaderType).getShader()); in executeForProgram()
1606 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1613 DE_UNREF(program); in executeForProgram()
1629 void executeForProgram (glu::Program& program, ShaderAllocator& shaders) in executeForProgram() argument
1637 DE_UNREF(program); in executeForProgram()