Home
last modified time | relevance | path

Searched refs:colorLoc (Results 1 – 25 of 26) sorted by relevance

12

/third_party/vk-gl-cts/modules/gles3/functional/
Des3fPolygonOffsetTests.cpp374 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
401 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
410 gl.vertexAttrib4f (colorLoc, 1.0f, 0.0f, 0.0f, 1.0f); in testPolygonOffset()
504 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
521 gl.vertexAttrib4f (colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
623 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
651 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
657 gl.vertexAttrib4f (colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
668 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
674 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
[all …]
Des3fPixelBufferObjectTests.cpp304 GLuint colorLoc = (GLuint)-1; in renderTriangle() local
315 colorLoc = glGetAttribLocation(m_program->getProgram(), "a_color"); in renderTriangle()
316 TCU_CHECK(colorLoc != (GLuint)-1); in renderTriangle()
318 GLU_CHECK_CALL(glEnableVertexAttribArray(colorLoc)); in renderTriangle()
322 GLU_CHECK_CALL(glVertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, 0, colors)); in renderTriangle()
326 GLU_CHECK_CALL(glDisableVertexAttribArray(colorLoc)); in renderTriangle()
Des3fShaderInvarianceTests.cpp277 const glw::GLint colorLoc = gl.getUniformLocation(shader.getProgram(), "u_color"); in iterate() local
286 gl.uniform4fv (colorLoc, 1, color.getPtr()); in iterate()
319 const glw::GLint colorLoc = gl.getUniformLocation(shader.getProgram(), "u_color"); in iterate() local
330 gl.uniform4fv (colorLoc, 1, color.getPtr()); in iterate()
Des3fDepthStencilClearTests.cpp282 int colorLoc = gl.getUniformLocation(m_visProgram->getProgram(), "u_color"); in renderGL() local
349 gl.uniform4f (colorLoc, 0.0f, 0.0f, c, 1.0f); in renderGL()
385 gl.uniform4f (colorLoc, 0.0f, c, 0.0f, 1.0f); in renderGL()
Des3fClippingTests.cpp547 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender() local
557 ctx.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testRender()
685 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender() local
693 ctx.enableVertexAttribArray (colorLoc); in testRender()
695 ctx.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, sizeof(GLfloat[8]), &m_lines[0].c0); in testRender()
699 ctx.disableVertexAttribArray (colorLoc); in testRender()
914 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender() local
922 ctx.enableVertexAttribArray (colorLoc); in testRender()
924 ctx.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, sizeof(GLfloat[8]), &m_polys[0].c0); in testRender()
927 ctx.disableVertexAttribArray (colorLoc); in testRender()
[all …]
Des3fFragDepthTests.cpp371 int colorLoc = gl.getUniformLocation(program.getProgram(), "u_color"); in iterate() local
391 gl.uniform4fv(colorLoc, 1, color.getPtr()); in iterate()
Des3fRasterizationTests.cpp363 const glw::GLint colorLoc = gl.getAttribLocation(m_shader->getProgram(), "a_color"); in drawPrimitives() local
372 gl.enableVertexAttribArray (colorLoc); in drawPrimitives()
373 gl.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, 0, &colorData[0]); in drawPrimitives()
377 gl.disableVertexAttribArray (colorLoc); in drawPrimitives()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fPolygonOffsetTests.cpp371 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
398 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
407 gl.vertexAttrib4f (colorLoc, 1.0f, 0.0f, 0.0f, 1.0f); in testPolygonOffset()
501 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
518 gl.vertexAttrib4f (colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
621 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
649 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
655 gl.vertexAttrib4f (colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
666 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
672 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
[all …]
Des2fDepthRangeTests.cpp164 const int colorLoc = glGetUniformLocation(program.getProgram(), "u_color"); in iterate() local
194 glUniform4f(colorLoc, 0.0f, 0.0f, 1.0f, 1.0f); in iterate()
218 glUniform4f(colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in iterate()
314 const int colorLoc = glGetUniformLocation(program.getProgram(), "u_color"); in iterate() local
339 glUniform4f(colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in iterate()
365 glUniform4fv(colorLoc, 1, color.getPtr()); in iterate()
Des2fShaderInvarianceTests.cpp277 const glw::GLint colorLoc = gl.getUniformLocation(shader.getProgram(), "u_color"); in iterate() local
286 gl.uniform4fv (colorLoc, 1, color.getPtr()); in iterate()
319 const glw::GLint colorLoc = gl.getUniformLocation(shader.getProgram(), "u_color"); in iterate() local
330 gl.uniform4fv (colorLoc, 1, color.getPtr()); in iterate()
Des2fDepthStencilClearTests.cpp279 int colorLoc = gl.getUniformLocation(m_visProgram->getProgram(), "u_color"); in renderGL() local
346 gl.uniform4f (colorLoc, 0.0f, 0.0f, c, 1.0f); in renderGL()
382 gl.uniform4f (colorLoc, 0.0f, c, 0.0f, 1.0f); in renderGL()
Des2fClippingTests.cpp544 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender() local
554 ctx.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testRender()
682 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender() local
690 ctx.enableVertexAttribArray (colorLoc); in testRender()
692 ctx.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, sizeof(GLfloat[8]), &m_lines[0].c0); in testRender()
696 ctx.disableVertexAttribArray (colorLoc); in testRender()
910 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender() local
918 ctx.enableVertexAttribArray (colorLoc); in testRender()
920 ctx.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, sizeof(GLfloat[8]), &m_polys[0].c0); in testRender()
923 ctx.disableVertexAttribArray (colorLoc); in testRender()
[all …]
Des2fRasterizationTests.cpp197 const glw::GLint colorLoc = gl.getAttribLocation(m_shader->getProgram(), "a_color"); in drawPrimitives() local
206 gl.enableVertexAttribArray (colorLoc); in drawPrimitives()
207 gl.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, 0, &colorData[0]); in drawPrimitives()
211 gl.disableVertexAttribArray (colorLoc); in drawPrimitives()
638 const glw::GLint colorLoc = gl.getAttribLocation(m_shader->getProgram(), "a_color"); in iterate() local
645 gl.enableVertexAttribArray(colorLoc); in iterate()
646 gl.vertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, 0, color); in iterate()
649 gl.disableVertexAttribArray(colorLoc); in iterate()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fVertexAttributeBindingTests.cpp322 const int colorLoc = gl.glGetAttribLocation(m_program->getProgram(), "a_color"); in renderTo() local
344 gl.glVertexAttribBinding(colorLoc, 3); in renderTo()
345 gl.glVertexAttribFormat(colorLoc, 4, GL_FLOAT, GL_FALSE, m_spec.colorAttrOffset); in renderTo()
346 gl.glEnableVertexAttribArray(colorLoc); in renderTo()
618 const int colorLoc = gl.glGetAttribLocation(m_program->getProgram(), "a_color"); in renderTo() local
638 gl.glEnableVertexAttribArray(colorLoc); in renderTo()
642 gl.glVertexAttribFormat(colorLoc, 4, GL_FLOAT, GL_FALSE, 0); in renderTo()
646 gl.glVertexAttribBinding(colorLoc, colorOffsetBinding); in renderTo()
892 const int colorLoc = gl.glGetAttribLocation(m_program->getProgram(), "a_color"); in renderTo() local
920 …gl.glVertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, glw::GLsizei(2 * sizeof(tcu::Vec4)), DE_… in renderTo()
[all …]
Des31fAdvancedBlendTests.cpp420 const int colorLoc = gl.getAttribLocation(program, "a_color"); in iterate() local
436 TCU_CHECK(posLoc >= 0 && colorLoc >= 0); in iterate()
461 gl.enableVertexAttribArray(colorLoc); in iterate()
462 gl.vertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, 0, DE_NULL); in iterate()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DBufferDataTest.cpp444 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
445 ASSERT_NE(-1, colorLoc); in TEST_P()
448 glVertexAttribPointer(colorLoc, 3, GL_UNSIGNED_BYTE, GL_TRUE, 0, nullptr); in TEST_P()
449 glEnableVertexAttribArray(colorLoc); in TEST_P()
519 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
520 ASSERT_NE(-1, colorLoc); in TEST_P()
523 glVertexAttribPointer(colorLoc, 3, GL_UNSIGNED_BYTE, GL_TRUE, 0, nullptr); in TEST_P()
524 glEnableVertexAttribArray(colorLoc); in TEST_P()
706 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
707 ASSERT_NE(-1, colorLoc); in TEST_P()
[all …]
DStateChangeTest.cpp938 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
939 ASSERT_NE(-1, colorLoc); in TEST_P()
949 glVertexAttribPointer(colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, nullptr); in TEST_P()
950 glEnableVertexAttribArray(colorLoc); in TEST_P()
1668 GLint colorLoc = glGetAttribLocation(program, "color"); in simpleDrawWithBuffer() local
1669 ASSERT_NE(-1, colorLoc); in simpleDrawWithBuffer()
1672 glVertexAttribPointer(colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, nullptr); in simpleDrawWithBuffer()
1673 glEnableVertexAttribArray(colorLoc); in simpleDrawWithBuffer()
3696 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
3697 ASSERT_NE(-1, colorLoc); in TEST_P()
[all …]
DMultiviewDrawTest.cpp1897 GLint colorLoc; in TEST_P() local
1912 colorLoc = glGetAttribLocation(program, "vColor"); in TEST_P()
1913 glVertexAttribDivisor(colorLoc, 2); in TEST_P()
1914 glVertexAttribPointer(colorLoc, 4, GL_UNSIGNED_BYTE, GL_FALSE, 0, 0); in TEST_P()
1915 glEnableVertexAttribArray(colorLoc); in TEST_P()
1961 glBindAttribLocation(program, colorLoc, "vColor"); in TEST_P()
DVertexAttributeTest.cpp1104 GLint colorLoc = glGetAttribLocation(program, "a_color"); in TEST_P() local
1105 ASSERT_NE(-1, colorLoc); in TEST_P()
1119 SetupColorsForUnitQuad(colorLoc, kFloatRed, GL_STREAM_DRAW, &colorBuffers[0]); in TEST_P()
1125 SetupColorsForUnitQuad(colorLoc, kFloatGreen, GL_STATIC_DRAW, &colorBuffers[1]); in TEST_P()
3303 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
3304 ASSERT_NE(-1, colorLoc); in TEST_P()
3308 glVertexAttribPointer(colorLoc, 2, GL_FLOAT, GL_FALSE, stride, in TEST_P()
3310 glEnableVertexAttribArray(colorLoc); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DStateChangeTest.cpp842 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
843 ASSERT_NE(-1, colorLoc); in TEST_P()
853 glVertexAttribPointer(colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, nullptr); in TEST_P()
854 glEnableVertexAttribArray(colorLoc); in TEST_P()
1420 GLint colorLoc = glGetAttribLocation(program, "color"); in simpleDrawWithBuffer() local
1421 ASSERT_NE(-1, colorLoc); in simpleDrawWithBuffer()
1424 glVertexAttribPointer(colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, nullptr); in simpleDrawWithBuffer()
1425 glEnableVertexAttribArray(colorLoc); in simpleDrawWithBuffer()
2668 GLint colorLoc = glGetAttribLocation(program, "color"); in TEST_P() local
2669 ASSERT_NE(-1, colorLoc); in TEST_P()
[all …]
DMultiviewDrawTest.cpp1880 GLint colorLoc; in TEST_P() local
1895 colorLoc = glGetAttribLocation(program, "vColor"); in TEST_P()
1896 glVertexAttribDivisor(colorLoc, 2); in TEST_P()
1897 glVertexAttribPointer(colorLoc, 4, GL_UNSIGNED_BYTE, GL_FALSE, 0, 0); in TEST_P()
1898 glEnableVertexAttribArray(colorLoc); in TEST_P()
1944 glBindAttribLocation(program, colorLoc, "vColor"); in TEST_P()
DVertexAttributeTest.cpp657 GLint colorLoc = glGetAttribLocation(program, "a_color"); in TEST_P() local
658 ASSERT_NE(-1, colorLoc); in TEST_P()
672 SetupColorsForUnitQuad(colorLoc, kFloatRed, GL_STREAM_DRAW, &colorBuffers[0]); in TEST_P()
678 SetupColorsForUnitQuad(colorLoc, kFloatGreen, GL_STATIC_DRAW, &colorBuffers[1]); in TEST_P()
/third_party/vk-gl-cts/modules/gles31/stress/
Des31sVertexAttributeBindingTests.cpp316 const int colorLoc = gl.glGetAttribLocation(m_program->getProgram(), "a_color"); in renderTo() local
338 gl.glVertexAttribBinding(colorLoc, 3); in renderTo()
339 gl.glVertexAttribFormat(colorLoc, 4, GL_FLOAT, GL_FALSE, m_spec.colorAttrOffset); in renderTo()
340 gl.glEnableVertexAttribArray(colorLoc); in renderTo()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcFragDepthTests.cpp361 int colorLoc = gl.getUniformLocation(program.getProgram(), "u_color"); in iterate() local
376 gl.uniform4fv(colorLoc, 1, color.getPtr()); in iterate()
/third_party/vk-gl-cts/modules/egl/
DteglImageFormatTests.cpp960 GLuint colorLoc = gl.getUniformLocation(glProgram, "u_color"); in invokeGLES() local
961 TCU_CHECK_MSG((int)colorLoc != (int)-1, "Couldn't find uniform u_color"); in invokeGLES()
995 GLU_CHECK_GLW_CALL(gl, uniform4f(colorLoc, color.x(), color.y(), color.z(), color.w())); in invokeGLES()
1084 GLuint colorLoc = gl.getUniformLocation(glProgram, "u_color"); in invokeGLES() local
1085 TCU_CHECK_MSG((int)colorLoc != (int)-1, "Couldn't find uniform u_color"); in invokeGLES()
1116 GLU_CHECK_GLW_CALL(gl, uniform4f(colorLoc, color.x(), color.y(), color.z(), color.w())); in invokeGLES()

12