Lines Matching refs:m_gl
96 glw::Functions m_gl; member in deqp::egl::__anon4ef199520111::PreservingSwapTest
114 const glw::Functions& m_gl; member in deqp::egl::__anon4ef199520111::GLES2Program
146 : m_gl (gl) in GLES2Program()
151 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color"); in GLES2Program()
152 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos"); in GLES2Program()
153 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations"); in GLES2Program()
186 m_gl.useProgram(m_glProgram.getProgram()); in render()
187 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render()
189 m_gl.enableVertexAttribArray(m_coordLoc); in render()
190 m_gl.enableVertexAttribArray(m_colorLoc); in render()
191 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to enable attributes"); in render()
193 m_gl.vertexAttribPointer(m_coordLoc, 4, GL_FLOAT, GL_FALSE, 0, coords); in render()
194 m_gl.vertexAttribPointer(m_colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, colors); in render()
195 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to set attribute pointers"); in render()
197 m_gl.drawArrays(GL_TRIANGLES, 0, 6); in render()
198 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDrawArrays() failed"); in render()
200 m_gl.disableVertexAttribArray(m_coordLoc); in render()
201 m_gl.disableVertexAttribArray(m_colorLoc); in render()
202 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to disable attributes"); in render()
204 m_gl.useProgram(0); in render()
205 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render()
221 m_gl.enable(GL_SCISSOR_TEST); in render()
222 m_gl.scissor(x1i, y1i, x2i-x1i, y2i-y1i); in render()
223 m_gl.clearColor(0.5f, 0.5f, 0.5f, 1.0f); in render()
224 m_gl.clear(GL_COLOR_BUFFER_BIT); in render()
225 m_gl.disable(GL_SCISSOR_TEST); in render()
366 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init()
368 m_gles2Program = new GLES2Program(m_gl); in init()
453 clearColorScreen(m_gl, clearRed, clearGreen, clearBlue, clearAlpha); in iterate()
471 readPixels(m_gl, &preSwapFramebuffer); in iterate()
482 readPixels(m_gl, &postSwapFramebuffer); in iterate()