• Home
  • Raw
  • Download

Lines Matching refs:m_gl

281 	const glw::Functions&			m_gl;  member in deqp::gles31::Functional::__anonfb1b35fd0111::FramebufferFetchTestCase
301 , m_gl (m_context.getRenderContext().getFunctions()) in FramebufferFetchTestCase()
323 m_gl.enable(GL_FRAMEBUFFER_SRGB); in init()
338 m_gl.useProgram(m_program->getProgram()); in init()
347 m_gl.disable(GL_FRAMEBUFFER_SRGB); in deinit()
352 m_gl.bindFramebuffer(GL_FRAMEBUFFER, 0); in deinit()
353 m_gl.deleteFramebuffers(1, &m_framebuffer); in deinit()
359 m_gl.deleteTextures(1, &m_texColorBuffer); in deinit()
420 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithTexture()
421 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithTexture()
424 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genAttachementTexture()"); in genFramebufferWithTexture()
426m_gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_texColorBuffer, 0… in genFramebufferWithTexture()
427 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithTexture()
435 m_gl.genTextures(1, &m_texColorBuffer); in genAttachementTexture()
436 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genAttachementTexture()
438 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in genAttachementTexture()
439 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in genAttachementTexture()
440 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in genAttachementTexture()
441 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachementTexture()
442 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachementTexture()
451m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genAttachementTexture()
452 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genAttachementTexture()
509 const GLuint colorLocation = m_gl.getUniformLocation(m_program->getProgram(), "u_color"); in genUniformColor()
515 m_gl.uniform4uiv(colorLocation, 1, color.asUint().getPtr()); in genUniformColor()
521 m_gl.uniform4iv(colorLocation, 1, color.asInt().getPtr()); in genUniformColor()
528 m_gl.uniform4fv(colorLocation, 1, color.asFloat().getPtr()); in genUniformColor()
535 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genUniformColor()"); in genUniformColor()
554 m_gl.genVertexArrays(1, &vaoID); in render()
555 m_gl.bindVertexArray(vaoID); in render()
557 const GLuint coordLocation = m_gl.getAttribLocation(m_program->getProgram(), "a_position"); in render()
559 m_gl.viewport(0, 0, VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in render()
564 m_gl.bindBuffer(GL_ARRAY_BUFFER, *coordinatesBuffer); in render()
565 m_gl.bufferData(GL_ARRAY_BUFFER, (GLsizeiptr)sizeof(coords), coords, GL_STATIC_DRAW); in render()
566 m_gl.enableVertexAttribArray(coordLocation); in render()
567 m_gl.vertexAttribPointer(coordLocation, 2, GL_FLOAT, GL_FALSE, 0, DE_NULL); in render()
569 m_gl.bindBuffer(GL_ELEMENT_ARRAY_BUFFER, *elementsBuffer); in render()
570 m_gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)sizeof(indices), &indices[0], GL_STATIC_DRAW); in render()
572 m_gl.drawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, DE_NULL); in render()
573 GLU_EXPECT_NO_ERROR(m_gl.getError(), "render()"); in render()
575 m_gl.deleteVertexArrays(1, &vaoID); in render()
711 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithTextures()
712 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithTextures()
717m_gl.framebufferTexture2D(GL_FRAMEBUFFER, m_colorBuffers[i], GL_TEXTURE_2D, m_texColorBuffers[i], … in genFramebufferWithTextures()
719 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithTextures()
721 m_gl.drawBuffers((glw::GLsizei)MAX_COLOR_BUFFERS, &m_colorBuffers[0]); in genFramebufferWithTextures()
722 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genFramebufferWithTextures()"); in genFramebufferWithTextures()
729 m_gl.genTextures(MAX_COLOR_BUFFERS, m_texColorBuffers); in genAttachmentTextures()
733 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffers[i]); in genAttachmentTextures()
735 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
736 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
737 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); in genAttachmentTextures()
738 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachmentTextures()
739 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_isFilterable ? GL_LINEAR : GL_NEAREST); in genAttachmentTextures()
742m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genAttachmentTextures()
745 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genAttachmentTextures()
746 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genAttachmentTextures()"); in genAttachmentTextures()
800 m_gl.readBuffer(m_colorBuffers[i]); in iterate()
914 m_gl.activeTexture(GL_TEXTURE1); in genSamplerTexture()
916 m_gl.genTextures(1, &m_samplerTexture); in genSamplerTexture()
917 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genSamplerTexture()
918 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in genSamplerTexture()
919 m_gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in genSamplerTexture()
923m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genSamplerTexture()
924 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genSamplerTexture()
926 const GLuint samplerLocation = m_gl.getUniformLocation(m_program->getProgram(), "u_sampler"); in genSamplerTexture()
927 m_gl.uniform1i(samplerLocation, 1); in genSamplerTexture()
929 GLU_EXPECT_NO_ERROR(m_gl.getError(), "genSamplerTexture()"); in genSamplerTexture()
975 m_gl.deleteTextures(1, &m_samplerTexture); in iterate()
1127 m_gl.genFramebuffers(1, &m_framebuffer); in genFramebufferWithGrid()
1128 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in genFramebufferWithGrid()
1130 m_gl.genTextures(1, &m_texColorBuffer); in genFramebufferWithGrid()
1131 m_gl.bindTexture(GL_TEXTURE_2D, m_texColorBuffer); in genFramebufferWithGrid()
1135m_gl.texImage2D(GL_TEXTURE_2D, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 0, m_transferFmt.form… in genFramebufferWithGrid()
1136 m_gl.bindTexture(GL_TEXTURE_2D, 0); in genFramebufferWithGrid()
1138m_gl.framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_texColorBuffer, 0… in genFramebufferWithGrid()
1139 TCU_CHECK(m_gl.checkFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); in genFramebufferWithGrid()
1200 m_gl.genTextures(1, &m_texColorBuffer); in create2DTextureArrayMipMaps()
1201 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, m_texColorBuffer); in create2DTextureArrayMipMaps()
1203m_gl.texImage3D(GL_TEXTURE_2D_ARRAY, 0, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1, 0, m_transfe… in create2DTextureArrayMipMaps()
1204 m_gl.generateMipmap(GL_TEXTURE_2D_ARRAY); in create2DTextureArrayMipMaps()
1214m_gl.texImage3D(GL_TEXTURE_2D_ARRAY, level, m_format, levelW, levelH, 1, 0, m_transferFmt.format, … in create2DTextureArrayMipMaps()
1217 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, 0); in create2DTextureArrayMipMaps()
1218 GLU_EXPECT_NO_ERROR(m_gl.getError(), "create2DTextureArrayMipMaps()"); in create2DTextureArrayMipMaps()
1252 m_gl.genFramebuffers(1, &m_framebuffer); in iterate()
1253 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in iterate()
1268m_gl.framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texColorBuffer, level, 0… in iterate()
1306 m_gl.genTextures(1, &m_texColorBuffer); in create2DTextureArrayLayers()
1307 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, m_texColorBuffer); in create2DTextureArrayLayers()
1308 m_gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1, m_format, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, numLayers); in create2DTextureArrayLayers()
1309 m_gl.bindImageTexture(0, m_texColorBuffer, 0, GL_FALSE, 0, GL_READ_ONLY, m_format); in create2DTextureArrayLayers()
1316m_gl.texSubImage3D(GL_TEXTURE_2D_ARRAY, 0, 0, 0, layer, VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1, m_tran… in create2DTextureArrayLayers()
1319 m_gl.bindTexture(GL_TEXTURE_2D_ARRAY, 0); in create2DTextureArrayLayers()
1320 GLU_EXPECT_NO_ERROR(m_gl.getError(), "create2DTextureArrayLayers()"); in create2DTextureArrayLayers()
1349 m_gl.genFramebuffers(1, &m_framebuffer); in iterate()
1350 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer); in iterate()
1363m_gl.framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texColorBuffer, 0, layer… in iterate()