Home
last modified time | relevance | path

Searched refs:colorLoc (Results 1 - 23 of 23) sorted by relevance

/third_party/vk-gl-cts/modules/gles31/functional/
H A 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"); local
920 gl.glVertexAttribPointer(colorLoc,
1128 const int colorLoc = gl.glGetAttribLocation(m_program->getProgram(), "a_color"); global() local
[all...]
H A 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()
H A Des31fDrawTests.cpp1501 const deInt32 colorLoc = gl.getAttribLocation(m_shaderProgram->getProgram(), "a_color");
1511 gl.vertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, 8 * (int)sizeof(float), glu::BufferOffsetAsPointer(4*sizeof(float)));
1513 gl.enableVertexAttribArray(colorLoc);
1516 DE_ASSERT(colorLoc != -1);
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fPolygonOffsetTests.cpp372 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
399 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
408 gl.vertexAttrib4f (colorLoc, 1.0f, 0.0f, 0.0f, 1.0f); in testPolygonOffset()
502 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
519 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. in testPolygonOffset()
773 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
886 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
1003 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
1125 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
[all...]
H A 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()
H A 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()
H A 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()
1145 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); render() local
[all...]
H A 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()
H A Des3fFragDepthTests.cpp371 int colorLoc = gl.getUniformLocation(program.getProgram(), "u_color"); in iterate() local
391 gl.uniform4fv(colorLoc, 1, color.getPtr()); in iterate()
H A Des3fRasterizationTests.cpp363 const glw::GLint colorLoc = gl.getAttribLocation(m_shader->getProgram(), "a_color");
372 gl.enableVertexAttribArray (colorLoc);
373 gl.vertexAttribPointer (colorLoc, 4, GL_FLOAT, GL_FALSE, 0, &colorData[0]);
377 gl.disableVertexAttribArray (colorLoc);
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fPolygonOffsetTests.cpp369 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
396 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
405 gl.vertexAttrib4f (colorLoc, 1.0f, 0.0f, 0.0f, 1.0f); in testPolygonOffset()
499 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
516 gl.vertexAttrib4f (colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
619 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); in testPolygonOffset() local
647 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
653 gl.vertexAttrib4f (colorLoc, 0.0f, 1.0f, 0.0f, 1.0f); in testPolygonOffset()
664 gl.vertexAttrib4f (colorLoc, 1.0f, 1.0f, 1.0f, 1.0f); in testPolygonOffset()
670 gl.vertexAttrib4f (colorLoc, 1. in testPolygonOffset()
771 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
884 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
1001 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
1123 const GLint colorLoc = gl.getAttribLocation(program.getProgram(), "a_color"); testPolygonOffset() local
[all...]
H A 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()
H A 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()
H A 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()
1141 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); render() local
[all...]
H A 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()
H A 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()
639 const glw::GLint colorLoc = gl.getAttribLocation(m_shader->getProgram(), "a_color"); in iterate() local
646 gl.enableVertexAttribArray(colorLoc); in iterate()
647 gl.vertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, 0, color); in iterate()
650 gl.disableVertexAttribArray(colorLoc); in iterate()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A 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...]
H A 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()
4085 GLint colorLoc = glGetAttribLocation(mProgram, "a_color"); TEST_P() local
[all...]
H A 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()
H A 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/vk-gl-cts/modules/gles31/stress/
H A 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/
H A 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/
H A DteglImageFormatTests.cpp1171 GLuint colorLoc = gl.getUniformLocation(glProgram, "u_color"); in invokeGLES() local
1172 TCU_CHECK_MSG((int)colorLoc != (int)-1, "Couldn't find uniform u_color"); in invokeGLES()
1206 GLU_CHECK_GLW_CALL(gl, uniform4f(colorLoc, color.x(), color.y(), color.z(), color.w())); in invokeGLES()
1295 GLuint colorLoc = gl.getUniformLocation(glProgram, "u_color"); in invokeGLES() local
1296 TCU_CHECK_MSG((int)colorLoc != (int)-1, "Couldn't find uniform u_color"); in invokeGLES()
1327 GLU_CHECK_GLW_CALL(gl, uniform4f(colorLoc, color.x(), color.y(), color.z(), color.w())); in invokeGLES()

Completed in 54 milliseconds