• Home
  • Raw
  • Download

Lines Matching refs:m_gl

108 	glw::Functions	m_gl;  member in deqp::egl::GLES2SharingTest
125 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init()
324 GLU_CHECK_GLW_CALL(m_gl, genBuffers(1, &m_glBuffer)); in createResource()
325 GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_ARRAY_BUFFER, m_glBuffer)); in createResource()
326 …GLU_CHECK_GLW_CALL(m_gl, bufferData(GL_ARRAY_BUFFER, (GLsizei)(m_buffer.size() * sizeof(GLubyte)),… in createResource()
327 GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_ARRAY_BUFFER, 0)); in createResource()
332 GLU_CHECK_GLW_CALL(m_gl, deleteBuffers(1, &m_glBuffer)); in destroyResource()
357 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
398 GLU_CHECK_GLW_CALL(m_gl, viewport(0, 0, width, height)); in renderResource()
400 GLU_CHECK_GLW_CALL(m_gl, clearColor(1.0f, 0.0f, 0.0f, 1.0f)); in renderResource()
401 GLU_CHECK_GLW_CALL(m_gl, clear(GL_COLOR_BUFFER_BIT)); in renderResource()
403 GLU_CHECK_GLW_CALL(m_gl, useProgram(program.getProgram())); in renderResource()
405 GLuint gridLocation = m_gl.getAttribLocation(program.getProgram(), "a_pos"); in renderResource()
406 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
409 GLuint colorLocation = m_gl.getAttribLocation(program.getProgram(), "a_color"); in renderResource()
410 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
413 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(colorLocation)); in renderResource()
414 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(gridLocation)); in renderResource()
416 GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_ARRAY_BUFFER, m_glBuffer)); in renderResource()
417 …GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(colorLocation, 1, GL_UNSIGNED_BYTE, GL_TRUE, 0, DE_NU… in renderResource()
418 GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_ARRAY_BUFFER, 0)); in renderResource()
420 …GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(gridLocation, 2, GL_FLOAT, GL_FALSE, 0, &(coords[0]))… in renderResource()
422 …GLU_CHECK_GLW_CALL(m_gl, drawElements(GL_TRIANGLES, (GLsizei)indices.size(), GL_UNSIGNED_SHORT, &(… in renderResource()
423 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(colorLocation)); in renderResource()
424 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(gridLocation)); in renderResource()
426 GLU_CHECK_GLW_CALL(m_gl, useProgram(0)); in renderResource()
431m_gl.readPixels(0, 0, screen->getWidth(), screen->getHeight(), GL_RGBA, GL_UNSIGNED_BYTE, screen->… in renderResource()
497 GLU_CHECK_GLW_CALL(m_gl, genTextures(1, &m_glTexture)); in createResource()
498 GLU_CHECK_GLW_CALL(m_gl, bindTexture(GL_TEXTURE_2D, m_glTexture)); in createResource()
499 GLU_CHECK_GLW_CALL(m_gl, texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT)); in createResource()
500 GLU_CHECK_GLW_CALL(m_gl, texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT)); in createResource()
501 GLU_CHECK_GLW_CALL(m_gl, texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); in createResource()
502 GLU_CHECK_GLW_CALL(m_gl, texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); in createResource()
503 …GLU_CHECK_GLW_CALL(m_gl, texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIG… in createResource()
504 GLU_CHECK_GLW_CALL(m_gl, bindTexture(GL_TEXTURE_2D, 0)); in createResource()
509 GLU_CHECK_GLW_CALL(m_gl, deleteTextures(1, &m_glTexture)); in destroyResource()
534 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
567 GLU_CHECK_GLW_CALL(m_gl, viewport(0, 0, width, height)); in renderResource()
569 GLU_CHECK_GLW_CALL(m_gl, clearColor(1.0f, 0.0f, 0.0f, 1.0f)); in renderResource()
570 GLU_CHECK_GLW_CALL(m_gl, clear(GL_COLOR_BUFFER_BIT)); in renderResource()
572 GLU_CHECK_GLW_CALL(m_gl, useProgram(program.getProgram())); in renderResource()
574 GLuint coordLocation = m_gl.getAttribLocation(program.getProgram(), "a_pos"); in renderResource()
575 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
578 GLuint texCoordLocation = m_gl.getAttribLocation(program.getProgram(), "a_texCorod"); in renderResource()
579 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
583 GLuint samplerLocation = m_gl.getUniformLocation(program.getProgram(), "u_sampler"); in renderResource()
584 GLU_CHECK_GLW_MSG(m_gl, "glGetUniformLocation()"); in renderResource()
587 GLU_CHECK_GLW_CALL(m_gl, activeTexture(GL_TEXTURE0)); in renderResource()
588 GLU_CHECK_GLW_CALL(m_gl, bindTexture(GL_TEXTURE_2D, m_glTexture)); in renderResource()
590 GLU_CHECK_GLW_CALL(m_gl, uniform1i(samplerLocation, 0)); in renderResource()
592 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(texCoordLocation)); in renderResource()
593 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(coordLocation)); in renderResource()
595 …GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(texCoordLocation, 2, GL_FLOAT, GL_FALSE, 0, texCoords… in renderResource()
596 GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(coordLocation, 2, GL_FLOAT, GL_FALSE, 0, coords)); in renderResource()
598 GLU_CHECK_GLW_CALL(m_gl, drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, indices)); in renderResource()
599 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(coordLocation)); in renderResource()
600 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(texCoordLocation)); in renderResource()
602 GLU_CHECK_GLW_CALL(m_gl, bindTexture(GL_TEXTURE_2D, 0)); in renderResource()
603 GLU_CHECK_GLW_CALL(m_gl, useProgram(0)); in renderResource()
607m_gl.readPixels(0, 0, screen->getWidth(), screen->getHeight(), GL_RGBA, GL_UNSIGNED_BYTE, screen->… in renderResource()
669 m_program = new glu::ShaderProgram(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in createResource()
712 GLU_CHECK_GLW_CALL(m_gl, viewport(0, 0, width, height)); in renderResource()
714 GLU_CHECK_GLW_CALL(m_gl, clearColor(1.0f, 0.0f, 0.0f, 1.0f)); in renderResource()
715 GLU_CHECK_GLW_CALL(m_gl, clear(GL_COLOR_BUFFER_BIT)); in renderResource()
717 GLU_CHECK_GLW_CALL(m_gl, useProgram(m_program->getProgram())); in renderResource()
719 GLuint coordLocation = m_gl.getAttribLocation(m_program->getProgram(), "a_pos"); in renderResource()
720 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
723 GLuint colorLocation = m_gl.getAttribLocation(m_program->getProgram(), "a_color"); in renderResource()
724 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
727 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(colorLocation)); in renderResource()
728 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(coordLocation)); in renderResource()
730 GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, 0, colors)); in renderResource()
731 GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(coordLocation, 2, GL_FLOAT, GL_FALSE, 0, coords)); in renderResource()
733 GLU_CHECK_GLW_CALL(m_gl, drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, indices)); in renderResource()
734 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(coordLocation)); in renderResource()
735 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(colorLocation)); in renderResource()
736 GLU_CHECK_GLW_CALL(m_gl, useProgram(0)); in renderResource()
740m_gl.readPixels(0, 0, screen->getWidth(), screen->getHeight(), GL_RGBA, GL_UNSIGNED_BYTE, screen->… in renderResource()
823 m_shader = m_gl.createShader(m_shaderType); in createResource()
824 GLU_CHECK_GLW_MSG(m_gl, "glCreateShader()"); in createResource()
829 GLU_CHECK_GLW_CALL(m_gl, shaderSource(m_shader, 1, &vertexShader, DE_NULL)); in createResource()
833 GLU_CHECK_GLW_CALL(m_gl, shaderSource(m_shader, 1, &fragmentShader, DE_NULL)); in createResource()
840 GLU_CHECK_GLW_CALL(m_gl, compileShader(m_shader)); in createResource()
843 GLU_CHECK_GLW_CALL(m_gl, getShaderiv(m_shader, GL_COMPILE_STATUS, &status)); in createResource()
848 GLU_CHECK_GLW_CALL(m_gl, getShaderInfoLog(m_shader, 256, DE_NULL, buffer)); in createResource()
873 GLU_CHECK_GLW_CALL(m_gl, deleteShader(m_shader)); in destroyResource()
906 otherShader = m_gl.createShader(GL_FRAGMENT_SHADER); in renderResource()
907 GLU_CHECK_GLW_MSG(m_gl, "glCreateShader()"); in renderResource()
908 GLU_CHECK_GLW_CALL(m_gl, shaderSource(otherShader, 1, &fragmentShader, DE_NULL)); in renderResource()
912 otherShader = m_gl.createShader(GL_VERTEX_SHADER); in renderResource()
913 GLU_CHECK_GLW_MSG(m_gl, "glCreateShader()"); in renderResource()
914 GLU_CHECK_GLW_CALL(m_gl, shaderSource(otherShader, 1, &vertexShader, DE_NULL)); in renderResource()
921 GLU_CHECK_GLW_CALL(m_gl, compileShader(otherShader)); in renderResource()
924 GLU_CHECK_GLW_CALL(m_gl, getShaderiv(otherShader, GL_COMPILE_STATUS, &status)); in renderResource()
929 GLU_CHECK_GLW_CALL(m_gl, getShaderInfoLog(otherShader, 256, DE_NULL, buffer)); in renderResource()
951 GLuint program = m_gl.createProgram(); in renderResource()
952 GLU_CHECK_GLW_MSG(m_gl, "glCreateProgram()"); in renderResource()
954 GLU_CHECK_GLW_CALL(m_gl, attachShader(program, m_shader)); in renderResource()
955 GLU_CHECK_GLW_CALL(m_gl, attachShader(program, otherShader)); in renderResource()
957 GLU_CHECK_GLW_CALL(m_gl, linkProgram(program)); in renderResource()
958 GLU_CHECK_GLW_CALL(m_gl, deleteShader(otherShader)); in renderResource()
961 GLU_CHECK_GLW_CALL(m_gl, getProgramiv(program, GL_LINK_STATUS, &status)); in renderResource()
966 GLU_CHECK_GLW_CALL(m_gl, getProgramInfoLog(program, 256, DE_NULL, buffer)); in renderResource()
1001 GLU_CHECK_GLW_CALL(m_gl, viewport(0, 0, width, height)); in renderResource()
1003 GLU_CHECK_GLW_CALL(m_gl, clearColor(1.0f, 0.0f, 0.0f, 1.0f)); in renderResource()
1004 GLU_CHECK_GLW_CALL(m_gl, clear(GL_COLOR_BUFFER_BIT)); in renderResource()
1006 GLU_CHECK_GLW_CALL(m_gl, useProgram(program)); in renderResource()
1008 GLuint coordLocation = m_gl.getAttribLocation(program, "a_pos"); in renderResource()
1009 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
1012 GLuint colorLocation = m_gl.getAttribLocation(program, "a_color"); in renderResource()
1013 GLU_CHECK_GLW_MSG(m_gl, "glGetAttribLocation()"); in renderResource()
1016 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(colorLocation)); in renderResource()
1017 GLU_CHECK_GLW_CALL(m_gl, enableVertexAttribArray(coordLocation)); in renderResource()
1019 GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, 0, colors)); in renderResource()
1020 GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(coordLocation, 2, GL_FLOAT, GL_FALSE, 0, coords)); in renderResource()
1022 GLU_CHECK_GLW_CALL(m_gl, drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, indices)); in renderResource()
1023 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(coordLocation)); in renderResource()
1024 GLU_CHECK_GLW_CALL(m_gl, disableVertexAttribArray(colorLocation)); in renderResource()
1025 GLU_CHECK_GLW_CALL(m_gl, useProgram(0)); in renderResource()
1029m_gl.readPixels(0, 0, screen->getWidth(), screen->getHeight(), GL_RGBA, GL_UNSIGNED_BYTE, screen->… in renderResource()