Home | History | Annotate | Download | only in functional

Lines Matching refs:Vec4

59 													"in highp vec4 a_position;\n"
65 "layout(location = 0) out highp vec4 fragColor;\n"
68 " fragColor = vec4(1.0, 0.0, 0.0, 1.0);\n"
72 "in highp vec4 a_position;\n"
73 "in highp vec4 a_color;\n"
74 "out highp vec4 v_color;\n"
81 "layout(location = 0) out highp vec4 fragColor;\n"
82 "in highp vec4 v_color;\n"
723 "in highp vec4 a_position;\n"
724 "in highp vec4 a_offset;\n"
725 "in highp vec4 a_color;\n"
726 "out highp vec4 v_color;\n"
734 "layout(location = 0) out highp vec4 dEQP_FragColor;\n"
735 "in highp vec4 v_color;\n"
809 const tcu::Vec4 green (0, 1, 0, 1);
810 const tcu::Vec4 yellow (1, 1, 0, 1);
825 const tcu::Vec4 vertexPositions[] =
827 tcu::Vec4(0, 0, 0, 1),
828 tcu::Vec4(cellW, 0, 0, 1),
829 tcu::Vec4(0, cellH, 0, 1),
831 tcu::Vec4(0, cellH, 0, 1),
832 tcu::Vec4(cellW, 0, 0, 1),
833 tcu::Vec4(cellW, cellH, 0, 1),
842 std::vector<tcu::Vec4> offsets;
845 offsets.push_back(tcu::Vec4((float)x * cellW - 1.0f, (float)y * cellW - 1.0f, 0, 0));
847 std::vector<tcu::Vec4> colors;
864 ctx.bufferData(GL_ARRAY_BUFFER, offsets.size() * sizeof(tcu::Vec4), &offsets[0], GL_STATIC_DRAW);
871 ctx.bufferData(GL_ARRAY_BUFFER, colors.size() * sizeof(tcu::Vec4), &colors[0], GL_STATIC_DRAW);
1077 const deUint64 drawBufferElementSize = sizeof(tcu::Vec4);
1231 << " vec4 attribs[];\n"
1271 << " const vec4 yellow = vec4(1.0, 1.0, 0.0, 1.0);\n"
1272 << " const vec4 green = vec4(0.0, 1.0, 0.0, 1.0);\n";
1283 << " vec4 color = ((x + y)%2u != 0u) ? (yellow) : (green);\n"
1285 << " attribs[((y * gridSize + x) * 6u + 0u) * 2u + 0u] = vec4(posX, posY, 0.0, 1.0);\n"
1286 << " attribs[((y * gridSize + x) * 6u + 1u) * 2u + 0u] = vec4(posXp1, posY, 0.0, 1.0);\n"
1287 << " attribs[((y * gridSize + x) * 6u + 2u) * 2u + 0u] = vec4(posXp1, posYp1, 0.0, 1.0);\n"
1288 << " attribs[((y * gridSize + x) * 6u + 3u) * 2u + 0u] = vec4(posX, posY, 0.0, 1.0);\n"
1289 << " attribs[((y * gridSize + x) * 6u + 4u) * 2u + 0u] = vec4(posXp1, posYp1, 0.0, 1.0);\n"
1290 << " attribs[((y * gridSize + x) * 6u + 5u) * 2u + 0u] = vec4(posX, posYp1, 0.0, 1.0);\n"
1308 << " attribs[(y * (gridSize+1u) + x) * 4u + 0u] = vec4(posX, posY, 0.0, 1.0);\n"
1310 << " attribs[(y * (gridSize+1u) + x) * 4u + 2u] = vec4(posX, posY, 0.0, 1.0);\n"
1400 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f);
1401 const tcu::Vec4 green (0.0f, 1.0f, 0.0f, 1.0f);
1407 std::vector<tcu::Vec4> buffer(m_gridSize*m_gridSize*6*2);
1417 const tcu::Vec4
1419 buffer[((y * m_gridSize + x) * 6 + 0) * 2 + 0] = tcu::Vec4(posX, posY, 0.0f, 1.0f);
1420 buffer[((y * m_gridSize + x) * 6 + 1) * 2 + 0] = tcu::Vec4(posX + cellSize, posY, 0.0f, 1.0f);
1421 buffer[((y * m_gridSize + x) * 6 + 2) * 2 + 0] = tcu::Vec4(posX + cellSize, posY + cellSize, 0.0f, 1.0f);
1422 buffer[((y * m_gridSize + x) * 6 + 3) * 2 + 0] = tcu::Vec4(posX, posY, 0.0f, 1.0f);
1423 buffer[((y * m_gridSize + x) * 6 + 4) * 2 + 0] = tcu::Vec4(posX + cellSize, posY + cellSize, 0.0f, 1.0f);
1424 buffer[((y * m_gridSize + x) * 6 + 5) * 2 + 0] = tcu::Vec4(posX, posY + cellSize, 0.0f, 1.0f);
1435 gl.bufferData(GL_ARRAY_BUFFER, (int)(buffer.size() * sizeof(tcu::Vec4)), buffer[0].getPtr(), GL_STATIC_DRAW);
1441 std::vector<tcu::Vec4> buffer((m_gridSize+1)*(m_gridSize+1)*4);
1451 buffer[(y * (m_gridSize+1) + x) * 4 + 0] = tcu::Vec4(posX, posY, 0.0f, 1.0f);
1453 buffer[(y * (m_gridSize+1) + x) * 4 + 2] = tcu::Vec4(posX, posY, 0.0f, 1.0f);
1458 gl.bufferData(GL_ARRAY_BUFFER, (int)(buffer.size() * sizeof(tcu::Vec4)), buffer[0].getPtr(), GL_STATIC_DRAW);
1553 // returns size in "vec4"s
1657 const int bufferSize = (int)(calcDrawBufferSize()*sizeof(tcu::Vec4));
1835 const int bufferSize = (int)(calcDrawBufferSize()*sizeof(tcu::Vec4));
2290 const tcu::Vec4 vertexPositions[] =
2292 tcu::Vec4(0, 0, 0, 1),
2293 tcu::Vec4(1, 0, 0, 1),
2294 tcu::Vec4(0, 1, 0, 1),
2460 const tcu::Vec4 vertexPositions[] =
2462 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f),
2463 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f),
2464 tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f),
2604 const tcu::Vec4 vertexPositions[] =
2606 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f),
2607 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f),
2608 tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f),