• Home
  • Raw
  • Download

Lines Matching refs:m_gl

281 	const glw::Functions&			m_gl;  member in deqp::gles31::Functional::__anon566eb1470111::FramebufferFetchTestCase
301 , m_gl (m_context.getRenderContext().getFunctions()) in FramebufferFetchTestCase()
334 m_gl.useProgram(m_program->getProgram()); in init()
344 m_gl.bindFramebuffer(GL_FRAMEBUFFER, 0); in deinit()
345 m_gl.deleteFramebuffers(1, &m_framebuffer); in deinit()
351 m_gl.deleteTextures(1, &m_texColorBuffer); in deinit()
391 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithTexture()
392 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithTexture()
395 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genAttachementTexture()"); in genFramebufferWithTexture()
397m_gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_texColorBuffer, 0… in genFramebufferWithTexture()
398 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithTexture()
406 m_gl.genTextures(1, &m_texColorBuffer); in genAttachementTexture()
407 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genAttachementTexture()
409 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in genAttachementTexture()
410 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in genAttachementTexture()
411 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in genAttachementTexture()
412 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachementTexture()
413 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachementTexture()
422m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genAttachementTexture()
423 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genAttachementTexture()
480 const GLuint colorLocation = m_gl.getUniformLocation(m_program->getProgram(), "u_color"); in genUniformColor()
486 m_gl.uniform4uiv(colorLocation, 1, color.asUint().getPtr()); in genUniformColor()
492 m_gl.uniform4iv(colorLocation, 1, color.asInt().getPtr()); in genUniformColor()
499 m_gl.uniform4fv(colorLocation, 1, color.asFloat().getPtr()); in genUniformColor()
506 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genUniformColor()"); in genUniformColor()
524 const GLuint coordLocation = m_gl.getAttribLocation(m_program->getProgram(), "a_position"); in render()
526 m_gl.viewport(0, 0, VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in render()
531 m_gl.bindBuffer(GL_ARRAY_BUFFER, *coordinatesBuffer); in render()
532 m_gl.bufferData(GL_ARRAY_BUFFER, (GLsizeiptr)sizeof(coords), coords, GL_STATIC_DRAW); in render()
533 m_gl.enableVertexAttribArray(coordLocation); in render()
534 m_gl.vertexAttribPointer(coordLocation, 2, GL_FLOAT, GL_FALSE, 0, DE_NULL); in render()
536 m_gl.bindBuffer(GL_ELEMENT_ARRAY_BUFFER, *elementsBuffer); in render()
537 m_gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)sizeof(indices), &indices[0], GL_STATIC_DRAW); in render()
539 m_gl.drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, DE_NULL); in render()
540 GLU_EXPECT_NO_ERROR(m_gl.getError(), "render()"); in render()
672 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithTextures()
673 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithTextures()
678m_gl.framebufferTexture2D(GL_FRAMEBUFFER, m_colorBuffers[i], GL_TEXTURE_2D, m_texColorBuffers[i], … in genFramebufferWithTextures()
680 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithTextures()
682 m_gl.drawBuffers((glw::GLsizei)MAX_COLOR_BUFFERS, &m_colorBuffers[0]); in genFramebufferWithTextures()
683 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genFramebufferWithTextures()"); in genFramebufferWithTextures()
690 m_gl.genTextures(MAX_COLOR_BUFFERS, m_texColorBuffers); in genAttachmentTextures()
694 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffers[i]); in genAttachmentTextures()
696 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
697 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
698 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
699 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachmentTextures()
700 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachmentTextures()
703m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genAttachmentTextures()
706 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genAttachmentTextures()
707 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genAttachmentTextures()"); in genAttachmentTextures()
761 m_gl.readBuffer(m_colorBuffers[i]); in iterate()
875 m_gl.activeTexture(GL_TEXTURE1); in genSamplerTexture()
877 m_gl.genTextures(1, &m_samplerTexture); in genSamplerTexture()
878 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genSamplerTexture()
879 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in genSamplerTexture()
880 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in genSamplerTexture()
884m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genSamplerTexture()
885 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genSamplerTexture()
887 const GLuint samplerLocation = m_gl.getUniformLocation(m_program->getProgram(), "u_sampler"); in genSamplerTexture()
888 m_gl.uniform1i(samplerLocation, 1); in genSamplerTexture()
890 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genSamplerTexture()"); in genSamplerTexture()
936 m_gl.deleteTextures(1, &m_samplerTexture); in iterate()
1088 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithGrid()
1089 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithGrid()
1091 m_gl.genTextures(1, &m_texColorBuffer); in genFramebufferWithGrid()
1092 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genFramebufferWithGrid()
1096m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genFramebufferWithGrid()
1097 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genFramebufferWithGrid()
1099m_gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_texColorBuffer, 0… in genFramebufferWithGrid()
1100 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithGrid()
1161 m_gl.genTextures(1, &m_texColorBuffer); in create2DTextureArrayMipMaps()
1162 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, m_texColorBuffer); in create2DTextureArrayMipMaps()
1164m_gl.texImage3D(GL_TEXTURE_2D_ARRAY, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1, 0, m_transfe… in create2DTextureArrayMipMaps()
1165 m_gl.generateMipmap(GL_TEXTURE_2D_ARRAY); in create2DTextureArrayMipMaps()
1175m_gl.texImage3D(GL_TEXTURE_2D_ARRAY, level, m_format, levelW, levelH, 1, 0, m_transferFmt.format, … in create2DTextureArrayMipMaps()
1178 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, 0); in create2DTextureArrayMipMaps()
1179 GLU_EXPECT_NO_ERROR(m_gl.getError(), "create2DTextureArrayMipMaps()"); in create2DTextureArrayMipMaps()
1213 m_gl.genFramebuffers(1, &m_framebuffer); in iterate()
1214 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in iterate()
1229m_gl.framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texColorBuffer, level, 0… in iterate()
1267 m_gl.genTextures(1, &m_texColorBuffer); in create2DTextureArrayLayers()
1268 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, m_texColorBuffer); in create2DTextureArrayLayers()
1269 m_gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, numLayers); in create2DTextureArrayLayers()
1270 m_gl.bindImageTexture(0, m_texColorBuffer, 0, GL_FALSE, 0, GL_READ_ONLY, m_format); in create2DTextureArrayLayers()
1277m_gl.texSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, layer, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1, m_tran… in create2DTextureArrayLayers()
1280 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, 0); in create2DTextureArrayLayers()
1281 GLU_EXPECT_NO_ERROR(m_gl.getError(), "create2DTextureArrayLayers()"); in create2DTextureArrayLayers()
1310 m_gl.genFramebuffers(1, &m_framebuffer); in iterate()
1311 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in iterate()
1324m_gl.framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texColorBuffer, 0, layer… in iterate()