HomeSort by relevance Sort by last modified time
    Searched defs:gl (Results 176 - 200 of 358) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/deqp/modules/gles2/functional/
es2fFboApiTest.cpp 24 * All gl calls are passed thru sgl2::Context class. Reasons:
568 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
570 GLU_EXPECT_NO_ERROR(gl.getError(), "Before test case");
581 GLU_EXPECT_NO_ERROR(gl.getError(), "After test case");
es2fRasterizationTests.cpp 191 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
192 const glw::GLint positionLoc = gl.getAttribLocation(m_shader->getProgram(), "a_position");
193 const glw::GLint colorLoc = gl.getAttribLocation(m_shader->getProgram(), "a_color");
194 const glw::GLint pointSizeLoc = gl.getUniformLocation(m_shader->getProgram(), "u_pointSize");
196 gl.clearColor (0, 0, 0, 1);
197 gl.clear (GL_COLOR_BUFFER_BIT);
198 gl.viewport (0, 0, m_renderSize, m_renderSize);
199 gl.useProgram (m_shader->getProgram());
200 gl.enableVertexAttribArray (positionLoc);
201 gl.vertexAttribPointer (positionLoc, 4, GL_FLOAT, GL_FALSE, 0, &vertexData[0])
    [all...]
es2fShaderDiscardTests.cpp 133 const glw::Functions& gl = m_renderCtx.getFunctions(); local
134 gl.uniform1i(gl.getUniformLocation(programID, "ut_brick"), 0);
es2fTextureFormatTests.cpp 139 const glw::Functions& gl = m_renderCtx.getFunctions(); local
168 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height);
170 // Upload texture data to GL.
174 gl.activeTexture(GL_TEXTURE0);
175 gl.bindTexture(GL_TEXTURE_2D, m_texture->getGLTexture());
178 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrapS);
179 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrapT);
180 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, minFilter);
181 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, magFilter);
183 GLU_EXPECT_NO_ERROR(gl.getError(), "Set texturing state")
314 const glw::Functions& gl = m_renderCtx.getFunctions(); local
448 const glw::Functions& gl = m_renderCtx.getFunctions(); local
559 const glw::Functions& gl = m_renderCtx.getFunctions(); local
    [all...]
es2fTextureSizeTests.cpp 119 const glw::Functions& gl = m_renderCtx.getFunctions(); local
134 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height);
136 // Upload texture data to GL.
140 gl.activeTexture(GL_TEXTURE0);
141 gl.bindTexture(GL_TEXTURE_2D, m_texture->getGLTexture());
143 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrapS);
144 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrapT);
145 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, minFilter);
146 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, magFilter);
147 GLU_EXPECT_NO_ERROR(gl.getError(), "Set texturing state")
262 const glw::Functions& gl = m_renderCtx.getFunctions(); local
    [all...]
es2fTextureWrapTests.cpp 161 const glw::Functions& gl = m_renderCtx.getFunctions(); local
175 gl.activeTexture(GL_TEXTURE0);
176 gl.bindTexture(GL_TEXTURE_2D, m_texture->getGLTexture());
179 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, m_wrapS);
180 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, m_wrapT);
181 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_minFilter);
182 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_magFilter);
184 GLU_EXPECT_NO_ERROR(gl.getError(), "Set texturing state");
192 gl.viewport(viewport.x, viewport.y, leftWidth, viewport.height);
205 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, viewport.height)
    [all...]
  /external/deqp/modules/gles2/stress/
es2sSpecialFloatTests.cpp 256 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
258 const GLint positionLoc = gl.getAttribLocation(patternProgram.getProgram(), "a_pos");
276 gl.genTextures(1, &textureID);
277 gl.bindTexture(GL_TEXTURE_2D, textureID);
278 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr());
279 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
280 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
283 gl.clearColor(0.0f, 0.0f, 0.0f, 1.0f);
284 gl.clear(GL_COLOR_BUFFER_BIT);
285 gl.viewport(0, 0, TEST_CANVAS_SIZE, TEST_CANVAS_SIZE)
    [all...]
  /external/deqp/modules/gles3/functional/
es3fColorClearTest.cpp 103 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
119 gl.enable(GL_SCISSOR_TEST);
142 gl.scissor(clearX, clearY, clearWidth, clearHeight);
150 gl.clearColor(r/255.0f, g/255.0f, b/255.0f, a/255.0f);
158 gl.colorMask((clearMask&0x1) != 0, (clearMask&0x2) != 0, (clearMask&0x4) != 0, (clearMask&0x8) != 0);
161 gl.clear(GL_COLOR_BUFFER_BIT);
233 GLU_EXPECT_NO_ERROR(gl.getError(), "glReadPixels");
242 if (gl.isEnabled(GL_DITHER))
es3fFboApiTests.cpp 24 * All gl calls are passed thru sglr::Context class. Reasons:
544 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
546 GLU_EXPECT_NO_ERROR(gl.getError(), "Before test case");
558 GLU_EXPECT_NO_ERROR(gl.getError(), "After test case");
es3fImplementationLimitTests.cpp 49 using namespace glw; // GL types
56 T query (const glw::Functions& gl, deUint32 param);
100 GLint query<GLint> (const glw::Functions& gl, deUint32 param)
103 gl.getIntegerv(param, &val);
108 GLint64 query<GLint64> (const glw::Functions& gl, deUint32 param)
111 gl.getInteger64v(param, &val);
116 GLuint64 query<GLuint64> (const glw::Functions& gl, deUint32 param)
119 gl.getInteger64v(param, &val);
124 GLfloat query<GLfloat> (const glw::Functions& gl,deUint32 param)
127 gl.getFloatv(param, &val)
242 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
288 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
390 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
    [all...]
es3fShaderDiscardTests.cpp 113 const glw::Functions& gl = m_renderCtx.getFunctions(); local
114 gl.uniform1i(gl.getUniformLocation(programID, "ut_brick"), 0);
es3fShaderFragDataTests.cpp 149 const glw::Functions& gl = renderCtx.getFunctions(); local
188 gl.clearColor (1.0f, 0.0f, 0.0f, 1.0f);
189 gl.clear (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT);
191 gl.viewport (0, 0, viewportW, viewportH);
192 gl.useProgram (program.getProgram());
193 gl.uniform1i (gl.getUniformLocation(program.getProgram(), "u_index"), 0);
197 GLU_EXPECT_NO_ERROR(gl.getError(), "Rendering failed");
205 GLU_EXPECT_NO_ERROR(gl.getError(), "Reading pixels failed");
248 const glw::Functions& gl = renderCtx.getFunctions() local
    [all...]
es3fTextureSizeTests.cpp 119 const glw::Functions& gl = m_renderCtx.getFunctions(); local
134 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height);
136 // Upload texture data to GL.
140 gl.activeTexture(GL_TEXTURE0);
141 gl.bindTexture(GL_TEXTURE_2D, m_texture->getGLTexture());
143 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrapS);
144 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrapT);
145 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, minFilter);
146 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, magFilter);
147 GLU_EXPECT_NO_ERROR(gl.getError(), "Set texturing state")
262 const glw::Functions& gl = m_renderCtx.getFunctions(); local
    [all...]
es3fTextureSwizzleTests.cpp 146 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
164 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height);
166 // Upload texture data to GL.
170 gl.activeTexture(GL_TEXTURE0);
171 gl.bindTexture(GL_TEXTURE_2D, m_texture->getGLTexture());
174 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
175 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
176 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
177 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
180 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_R, m_swizzleR)
    [all...]
  /external/deqp/modules/gles3/stress/
es3sLongRunningShaderTests.cpp 275 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
290 gl.useProgram(m_program->getProgram());
293 gl.uniform1i(gl.getUniformLocation(m_program->getProgram(), "u_iterCount"), iterCounts[0]);
es3sSpecialFloatTests.cpp 264 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
266 const GLint positionLoc = gl.getAttribLocation(patternProgram.getProgram(), "a_pos");
284 gl.genTextures(1, &textureID);
285 gl.bindTexture(GL_TEXTURE_2D, textureID);
286 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr());
287 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
288 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
291 gl.clearColor(0.0f, 0.0f, 0.0f, 1.0f);
292 gl.clear(GL_COLOR_BUFFER_BIT);
293 gl.viewport(0, 0, TEST_CANVAS_SIZE, TEST_CANVAS_SIZE)
    [all...]
  /external/deqp/modules/gles31/functional/
es31fBasicComputeShaderTests.cpp 53 BufferMemMap (const glw::Functions& gl, deUint32 target, int offset, int size, deUint32 access)
54 : m_gl (gl)
58 m_ptr = gl.mapBufferRange(target, offset, size, access);
59 GLU_EXPECT_NO_ERROR(gl.getError(), "glMapBufferRange()");
100 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
106 gl.useProgram(program.getProgram());
107 gl.dispatchCompute(1, 1, 1);
108 GLU_EXPECT_NO_ERROR(gl.getError(), "glDispatchCompute()");
148 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
167 gl.useProgram(program.getProgram())
268 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
387 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
502 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
596 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
    [all...]
es31fComputeShaderBuiltinVarTests.cpp 208 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
216 const deUint32 outVarIndex = gl.getProgramResourceIndex(program, GL_BUFFER_VARIABLE, "Output.result");
217 const InterfaceVariableInfo outVarInfo = getProgramInterfaceVariableInfo(gl, program, GL_BUFFER_VARIABLE, outVarIndex);
226 gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, *outputBuffer);
227 gl.bufferData(GL_SHADER_STORAGE_BUFFER, (glw::GLsizeiptr)bufferSize, DE_NULL, GL_STREAM_READ);
228 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, *outputBuffer);
229 GLU_EXPECT_NO_ERROR(gl.getError(), "Buffer setup failed");
231 gl.useProgram(program);
232 gl.uniform2uiv(gl.getUniformLocation(program, "u_stride"), 1, stride.getPtr())
    [all...]
es31fDebugTests.cpp 576 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
580 gl.enable(GL_DEBUG_OUTPUT);
581 gl.enable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
582 gl.debugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, DE_NULL, false); // disable all
583 gl.debugMessageControl(GL_DEBUG_SOURCE_API, GL_DEBUG_TYPE_ERROR, GL_DONT_CARE, 0, DE_NULL, true); // enable API errors
584 gl.debugMessageControl(GL_DEBUG_SOURCE_APPLICATION, GL_DONT_CARE, GL_DONT_CARE, 0, DE_NULL, true); // enable application messages
585 gl.debugMessageControl(GL_DEBUG_SOURCE_THIRD_PARTY, GL_DONT_CARE, GL_DONT_CARE, 0, DE_NULL, true); // enable third party messages
586 gl.debugMessageCallback(callbackHandle, this);
590 gl.debugMessageCallback(DE_NULL, DE_NULL);
591 gl.disable(GL_DEBUG_OUTPUT)
644 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
667 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
    [all...]
es31fFboNoAttachmentTests.cpp 68 const glw::Functions& gl = renderCtx.getFunctions(); local
97 gl.useProgram(program.getProgram());
98 gl.enable(GL_DEPTH_TEST);
99 gl.depthFunc(GL_ALWAYS);
100 gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer);
101 gl.viewport(0, 0, size.x()*2, size.y()*2); // Oversized viewport so that it will not accidentally limit us to the correct size
107 TCU_CHECK(gl.checkFramebufferStatus(GL_DRAW_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE);
124 gl.genQueries(1, &query);
125 gl.genVertexArrays(1, &vertexArray);
126 gl.bindVertexArray(vertexArray)
175 const glw::Functions& gl = renderCtx.getFunctions(); local
290 const glw::Functions& gl = m_renderCtx.getFunctions(); local
361 const glw::Functions& gl = m_renderCtx.getFunctions(); local
392 const glw::Functions& gl = m_renderCtx.getFunctions(); local
407 const glw::Functions& gl = m_renderCtx.getFunctions(); local
422 const glw::Functions& gl = m_renderCtx.getFunctions(); local
465 const glw::Functions& gl = m_renderCtx.getFunctions(); local
    [all...]
es31fIntegerStateQueryTests.cpp 67 static bool verifyValue (glu::CallLogWrapper& gl, glw::GLenum target, int refValue, VerifierType type)
74 gl.glGetBooleanv(target, &value);
76 GLU_EXPECT_NO_ERROR(gl.glGetError(), "glGetBooleanv");
80 gl.getLog() << tcu::TestLog::Message << "Get* did not return a value." << tcu::TestLog::EndMessage;
85 gl.getLog() << tcu::TestLog::Message << "Expected " << ((refValue == 0) ? (GL_FALSE) : (GL_TRUE)) << ", got " << ((value == 0) ? (GL_FALSE) : (GL_TRUE)) << tcu::TestLog::EndMessage;
95 gl.glGetIntegerv(target, &value);
97 GLU_EXPECT_NO_ERROR(gl.glGetError(), "glGetIntegerv");
101 gl.getLog() << tcu::TestLog::Message << "Get* did not return a value." << tcu::TestLog::EndMessage;
106 gl.getLog() << tcu::TestLog::Message << "Expected " << refValue << ", got " << value << tcu::TestLog::EndMessage;
116 gl.glGetInteger64v(target, &value)
369 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
    [all...]
es31fProgramInterfaceQueryTestCase.cpp 544 const glw::Functions& gl = m_renderContext.getFunctions(); local
551 gl.getProgramResourceName(m_programID, interface, propValue, (int)nameBuffer.size() - 1, &written, &nameBuffer[0]);
552 GLU_EXPECT_NO_ERROR(gl.getError(), "query block name");
702 const glw::Functions& gl = m_renderContext.getFunctions();
705 gl.getProgramInterfaceiv(m_programID, GL_ATOMIC_COUNTER_BUFFER, GL_ACTIVE_RESOURCES, &numActiveResources);
706 GLU_EXPECT_NO_ERROR(gl.getError(), "getProgramInterfaceiv(..., GL_ATOMIC_COUNTER_BUFFER, GL_ACTIVE_RESOURCES, ...)");
    [all...]
es31fSSBOArrayLengthTests.cpp 92 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
103 gl.genBuffers(1, &m_outputBufferID);
104 gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, m_outputBufferID);
105 gl.bufferData(GL_SHADER_STORAGE_BUFFER, 2 * (int)sizeof(deUint32), &invalidValue, GL_DYNAMIC_COPY);
107 gl.genBuffers(1, &m_targetBufferID);
108 gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, m_targetBufferID);
110 GLU_EXPECT_NO_ERROR(gl.getError(), "create buffers");
112 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, m_outputBufferID);
113 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, 1, m_targetBufferID);
115 GLU_EXPECT_NO_ERROR(gl.getError(), "bind buffers")
182 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
    [all...]
es31fShaderSharedVarTests.cpp 176 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local
179 const deUint32 outBlockNdx = gl.getProgramResourceIndex(program, GL_SHADER_STORAGE_BLOCK, "Result");
180 const InterfaceBlockInfo outBlockInfo = getProgramInterfaceBlockInfo(gl, program, GL_SHADER_STORAGE_BLOCK, outBlockNdx);
182 gl.useProgram(program);
187 const int valLoc = gl.getUniformLocation(program, "u_val[0]");
188 const int refLoc = gl.getUniformLocation(program, "u_ref[0]");
189 const int iterCountLoc = gl.getUniformLocation(program, "u_numIters");
205 if (scalarSize == 1) gl.uniform1fv(location, numValues, &values[0]);
206 else if (scalarSize == 2) gl.uniform2fv(location, numValues, &values[0]);
207 else if (scalarSize == 3) gl.uniform3fv(location, numValues, &values[0])
    [all...]
es31fTextureFormatTests.cpp 174 const glw::Functions& gl = m_renderCtx.getFunctions(); local
196 gl.clear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT);
197 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height);
199 // Upload texture data to GL.
203 gl.activeTexture(GL_TEXTURE0);
204 gl.bindTexture(GL_TEXTURE_CUBE_MAP_ARRAY, m_texture->getGLTexture());
207 gl.texParameteri(GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
208 gl.texParameteri(GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
209 gl.texParameteri(GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
210 gl.texParameteri(GL_TEXTURE_CUBE_MAP_ARRAY, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
313 const glw::Functions& gl = m_renderCtx.getFunctions(); local
    [all...]

Completed in 1565 milliseconds

1 2 3 4 5 6 78 91011>>