Lines Matching refs:m_gl
281 const glw::Functions& m_gl; member in deqp::gles31::Functional::__anon9c451be50111::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()
412 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithTexture()
413 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithTexture()
416 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genAttachementTexture()"); in genFramebufferWithTexture()
418 …m_gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_texColorBuffer, 0… in genFramebufferWithTexture()
419 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithTexture()
427 m_gl.genTextures(1, &m_texColorBuffer); in genAttachementTexture()
428 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genAttachementTexture()
430 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in genAttachementTexture()
431 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in genAttachementTexture()
432 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in genAttachementTexture()
433 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachementTexture()
434 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachementTexture()
443 …m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genAttachementTexture()
444 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genAttachementTexture()
501 const GLuint colorLocation = m_gl.getUniformLocation(m_program->getProgram(), "u_color"); in genUniformColor()
507 m_gl.uniform4uiv(colorLocation, 1, color.asUint().getPtr()); in genUniformColor()
513 m_gl.uniform4iv(colorLocation, 1, color.asInt().getPtr()); in genUniformColor()
520 m_gl.uniform4fv(colorLocation, 1, color.asFloat().getPtr()); in genUniformColor()
527 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genUniformColor()"); in genUniformColor()
546 m_gl.genVertexArrays(1, &vaoID); in render()
547 m_gl.bindVertexArray(vaoID); in render()
549 const GLuint coordLocation = m_gl.getAttribLocation(m_program->getProgram(), "a_position"); in render()
551 m_gl.viewport(0, 0, VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in render()
556 m_gl.bindBuffer(GL_ARRAY_BUFFER, *coordinatesBuffer); in render()
557 m_gl.bufferData(GL_ARRAY_BUFFER, (GLsizeiptr)sizeof(coords), coords, GL_STATIC_DRAW); in render()
558 m_gl.enableVertexAttribArray(coordLocation); in render()
559 m_gl.vertexAttribPointer(coordLocation, 2, GL_FLOAT, GL_FALSE, 0, DE_NULL); in render()
561 m_gl.bindBuffer(GL_ELEMENT_ARRAY_BUFFER, *elementsBuffer); in render()
562 m_gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)sizeof(indices), &indices[0], GL_STATIC_DRAW); in render()
564 m_gl.drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, DE_NULL); in render()
565 GLU_EXPECT_NO_ERROR(m_gl.getError(), "render()"); in render()
567 m_gl.deleteVertexArrays(1, &vaoID); in render()
703 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithTextures()
704 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithTextures()
709 …m_gl.framebufferTexture2D(GL_FRAMEBUFFER, m_colorBuffers[i], GL_TEXTURE_2D, m_texColorBuffers[i], … in genFramebufferWithTextures()
711 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithTextures()
713 m_gl.drawBuffers((glw::GLsizei)MAX_COLOR_BUFFERS, &m_colorBuffers[0]); in genFramebufferWithTextures()
714 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genFramebufferWithTextures()"); in genFramebufferWithTextures()
721 m_gl.genTextures(MAX_COLOR_BUFFERS, m_texColorBuffers); in genAttachmentTextures()
725 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffers[i]); in genAttachmentTextures()
727 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
728 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
729 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
730 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachmentTextures()
731 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachmentTextures()
734 …m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genAttachmentTextures()
737 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genAttachmentTextures()
738 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genAttachmentTextures()"); in genAttachmentTextures()
792 m_gl.readBuffer(m_colorBuffers[i]); in iterate()
906 m_gl.activeTexture(GL_TEXTURE1); in genSamplerTexture()
908 m_gl.genTextures(1, &m_samplerTexture); in genSamplerTexture()
909 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genSamplerTexture()
910 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in genSamplerTexture()
911 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in genSamplerTexture()
915 …m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genSamplerTexture()
916 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genSamplerTexture()
918 const GLuint samplerLocation = m_gl.getUniformLocation(m_program->getProgram(), "u_sampler"); in genSamplerTexture()
919 m_gl.uniform1i(samplerLocation, 1); in genSamplerTexture()
921 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genSamplerTexture()"); in genSamplerTexture()
967 m_gl.deleteTextures(1, &m_samplerTexture); in iterate()
1119 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithGrid()
1120 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithGrid()
1122 m_gl.genTextures(1, &m_texColorBuffer); in genFramebufferWithGrid()
1123 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genFramebufferWithGrid()
1127 …m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genFramebufferWithGrid()
1128 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genFramebufferWithGrid()
1130 …m_gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_texColorBuffer, 0… in genFramebufferWithGrid()
1131 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithGrid()
1192 m_gl.genTextures(1, &m_texColorBuffer); in create2DTextureArrayMipMaps()
1193 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, m_texColorBuffer); in create2DTextureArrayMipMaps()
1195 …m_gl.texImage3D(GL_TEXTURE_2D_ARRAY, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1, 0, m_transfe… in create2DTextureArrayMipMaps()
1196 m_gl.generateMipmap(GL_TEXTURE_2D_ARRAY); in create2DTextureArrayMipMaps()
1206 …m_gl.texImage3D(GL_TEXTURE_2D_ARRAY, level, m_format, levelW, levelH, 1, 0, m_transferFmt.format, … in create2DTextureArrayMipMaps()
1209 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, 0); in create2DTextureArrayMipMaps()
1210 GLU_EXPECT_NO_ERROR(m_gl.getError(), "create2DTextureArrayMipMaps()"); in create2DTextureArrayMipMaps()
1244 m_gl.genFramebuffers(1, &m_framebuffer); in iterate()
1245 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in iterate()
1260 …m_gl.framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texColorBuffer, level, 0… in iterate()
1298 m_gl.genTextures(1, &m_texColorBuffer); in create2DTextureArrayLayers()
1299 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, m_texColorBuffer); in create2DTextureArrayLayers()
1300 m_gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, numLayers); in create2DTextureArrayLayers()
1301 m_gl.bindImageTexture(0, m_texColorBuffer, 0, GL_FALSE, 0, GL_READ_ONLY, m_format); in create2DTextureArrayLayers()
1308 …m_gl.texSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, layer, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1, m_tran… in create2DTextureArrayLayers()
1311 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, 0); in create2DTextureArrayLayers()
1312 GLU_EXPECT_NO_ERROR(m_gl.getError(), "create2DTextureArrayLayers()"); in create2DTextureArrayLayers()
1341 m_gl.genFramebuffers(1, &m_framebuffer); in iterate()
1342 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in iterate()
1355 …m_gl.framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texColorBuffer, 0, layer… in iterate()