• Home
  • Raw
  • Download

Lines Matching refs:m_ctx

914 	sglr::Context&				m_ctx;  member in deqp::gls::__anon7252ad110111::AttributeArray
935 , m_ctx (context) in AttributeArray()
953 m_ctx.genBuffers(1, &m_glBuffer); in AttributeArray()
954 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glGenBuffers()"); in AttributeArray()
962 m_ctx.deleteBuffers(1, &m_glBuffer); in ~AttributeArray()
963 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDeleteBuffers()"); in ~AttributeArray()
978 m_ctx.bindBuffer(targetToGL(target), m_glBuffer); in data()
979 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); in data()
981 m_ctx.bufferData(targetToGL(target), size, ptr, usageToGL(usage)); in data()
982 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBufferData()"); in data()
1002 m_ctx.bindBuffer(targetToGL(target), m_glBuffer); in subdata()
1003 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); in subdata()
1005 m_ctx.bufferSubData(targetToGL(target), offset, size, ptr); in subdata()
1006 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBufferSubData()"); in subdata()
1041 case 1: m_ctx.vertexAttrib1f(loc, attr.x()); break; in bindAttribute()
1042 case 2: m_ctx.vertexAttrib2f(loc, attr.x(), attr.y()); break; in bindAttribute()
1043 case 3: m_ctx.vertexAttrib3f(loc, attr.x(), attr.y(), attr.z()); break; in bindAttribute()
1044 case 4: m_ctx.vertexAttrib4f(loc, attr.x(), attr.y(), attr.z(), attr.w()); break; in bindAttribute()
1052 m_ctx.vertexAttribI4i(loc, attr.x(), attr.y(), attr.z(), attr.w()); in bindAttribute()
1058 m_ctx.vertexAttribI4ui(loc, attr.x(), attr.y(), attr.z(), attr.w()); in bindAttribute()
1072 m_ctx.bindBuffer(targetToGL(m_target), m_glBuffer); in bindAttribute()
1073 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); in bindAttribute()
1079 m_ctx.bindBuffer(targetToGL(m_target), 0); in bindAttribute()
1080 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()"); in bindAttribute()
1098m_ctx.vertexAttribPointer(loc, size, inputTypeToGL(m_inputType), m_normalize, m_stride, basePtr + … in bindAttribute()
1099 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()"); in bindAttribute()
1104m_ctx.vertexAttribIPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_stride, basePtr + … in bindAttribute()
1105 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribIPointer()"); in bindAttribute()
1115m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride… in bindAttribute()
1116 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()"); in bindAttribute()
1120 m_ctx.vertexAttribDivisor(loc, m_instanceDivisor); in bindAttribute()
1131 m_ctx.bindBuffer(targetToGL(target), m_glBuffer); in bindIndexArray()
1852 sglr::Context& m_ctx; member in deqp::gls::AttributePack
1866 , m_ctx (drawContext) in AttributePack()
1875 m_ctx.genVertexArrays(1, &m_vaoID); in AttributePack()
1883 m_ctx.deleteProgram(m_programID); in ~AttributePack()
1889 m_ctx.deleteVertexArrays(1, &m_vaoID); in ~AttributePack()
1904 m_arrays.push_back(new AttributeArray(storage, m_ctx)); in newArray()
1917 m_ctx.deleteProgram(m_programID); in updateProgram()
1922 m_programID = m_ctx.createProgram(m_program); in updateProgram()
1930 m_ctx.viewport(0, 0, m_screen.getWidth(), m_screen.getHeight()); in render()
1931 m_ctx.clearColor(0.0, 0.0, 0.0, 1.0); in render()
1932 m_ctx.clear(GL_COLOR_BUFFER_BIT); in render()
1934 m_ctx.useProgram(m_programID); in render()
1935 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glUseProgram()"); in render()
1937 m_ctx.uniform1f(m_ctx.getUniformLocation(m_programID, "u_coordScale"), coordScale); in render()
1938 m_ctx.uniform1f(m_ctx.getUniformLocation(m_programID, "u_colorScale"), colorScale); in render()
1941 m_ctx.bindVertexArray(m_vaoID); in render()
1951 deUint32 loc = m_ctx.getAttribLocation(m_programID, attribName.str().c_str()); in render()
1955 m_ctx.enableVertexAttribArray(loc); in render()
1956 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glEnableVertexAttribArray()"); in render()
1964 m_ctx.drawArrays(primitiveToGL(primitive), firstVertex, vertexCount); in render()
1965 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArrays()"); in render()
1969 m_ctx.drawArraysInstanced(primitiveToGL(primitive), firstVertex, vertexCount, instanceCount); in render()
1970 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArraysInstanced()"); in render()
1974 m_ctx.drawElements(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), indexOffset); in render()
1975 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElements()"); in render()
1979m_ctx.drawRangeElements(primitiveToGL(primitive), rangeStart, rangeEnd, vertexCount, indexTypeToGL… in render()
1980 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawRangeElements()"); in render()
1984m_ctx.drawElementsInstanced(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), index… in render()
1985 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElementsInstanced()"); in render()
2020 m_ctx.genBuffers(1, &indirectBuf); in render()
2021 m_ctx.bindBuffer(GL_DRAW_INDIRECT_BUFFER, indirectBuf); in render()
2022m_ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(DrawCommand) + indirectOffset, buffer, GL_STATIC_… in render()
2025 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "Setup draw indirect buffer"); in render()
2027 m_ctx.drawArraysIndirect(primitiveToGL(primitive), (const deInt8*)DE_NULL + indirectOffset); in render()
2028 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArraysIndirect()"); in render()
2030 m_ctx.deleteBuffers(1, &indirectBuf); in render()
2071 m_ctx.genBuffers(1, &indirectBuf); in render()
2072 m_ctx.bindBuffer(GL_DRAW_INDIRECT_BUFFER, indirectBuf); in render()
2073m_ctx.bufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(DrawCommand) + indirectOffset, buffer, GL_STATIC_… in render()
2076 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "Setup draw indirect buffer"); in render()
2078m_ctx.drawElementsIndirect(primitiveToGL(primitive), indexTypeToGL(indexType), (const deInt8*)DE_N… in render()
2079 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArraysIndirect()"); in render()
2081 m_ctx.deleteBuffers(1, &indirectBuf); in render()
2085m_ctx.drawElementsBaseVertex(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexType), inde… in render()
2086 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElementsBaseVertex()"); in render()
2090m_ctx.drawElementsInstancedBaseVertex(primitiveToGL(primitive), vertexCount, indexTypeToGL(indexTy… in render()
2091 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawElementsInstancedBaseVertex()"); in render()
2095m_ctx.drawRangeElementsBaseVertex(primitiveToGL(primitive), rangeStart, rangeEnd, vertexCount, ind… in render()
2096 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawRangeElementsBaseVertex()"); in render()
2108 deUint32 loc = m_ctx.getAttribLocation(m_programID, attribName.str().c_str()); in render()
2110 m_ctx.disableVertexAttribArray(loc); in render()
2111 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDisableVertexAttribArray()"); in render()
2116 m_ctx.bindVertexArray(0); in render()
2118 m_ctx.useProgram(0); in render()
2119 m_ctx.readPixels(m_screen, 0, 0, m_screen.getWidth(), m_screen.getHeight()); in render()