Lines Matching refs:Vec4
70 "in highp vec4 a_position;\n"
76 "layout(location = 0) out mediump vec4 fragColor;\n"
79 " fragColor = vec4(1.0);\n"
105 "in highp vec4 a_position;\n"
106 "out highp vec4 v_vertex_color;\n"
110 " v_vertex_color = vec4(a_position.x * 0.5 + 0.5, a_position.y * 0.5 + 0.5, 1.0, 0.4);\n"
119 "in mediump vec4 v_fragment_color;\n"
120 "layout(location = 0) out mediump vec4 fragColor;\n"
198 static const tcu::Vec4 patchBufferData[4] =
200 tcu::Vec4( -0.9f, -0.9f, 0.0f, 1.0f ),
201 tcu::Vec4( -0.9f, 0.9f, 0.0f, 1.0f ),
202 tcu::Vec4( 0.9f, -0.9f, 0.0f, 1.0f ),
203 tcu::Vec4( 0.9f, 0.9f, 0.0f, 1.0f ),
338 "in highp vec4 v_vertex_color[];\n"
339 "out highp vec4 v_patch_color[];\n"
381 "in highp vec4 v_patch_color[];\n"
382 "out highp vec4 " << colorOutputName << ";\n"
391 " gl_Position = vec4(weights.x * gl_in[0].gl_Position.xyz + weights.y * gl_in[1].gl_Position.xyz + weights.z * gl_in[2].gl_Position.xyz, 1.0);\n"
420 "in highp vec4 v_evaluated_color[];\n"
421 "out highp vec4 v_fragment_color;\n"
504 static const tcu::Vec4 pointData[] =
506 tcu::Vec4( -0.4f, 0.4f, 0.0f, 1.0f ),
507 tcu::Vec4( 0.0f, -0.5f, 0.0f, 1.0f ),
508 tcu::Vec4( 0.4f, 0.4f, 0.0f, 1.0f ),
652 "in highp vec4 v_vertex_color[];\n"
653 "out highp vec4 v_control_color[];\n"
687 "in highp vec4 v_control_color[];\n"
688 "out highp vec4 v_evaluated_color;\n"
721 "in highp vec4 " << colorSourceName << "[];\n"
722 "out highp vec4 v_fragment_color;\n"
729 buf << " vec4 centerPos = (gl_in[0].gl_Position + gl_in[1].gl_Position + gl_in[2].gl_Position) / 3.0f;\n"
745 buf << " vec4 mdir = vec4(gl_in[0].gl_Position.y - gl_in[1].gl_Position.y, gl_in[1].gl_Position.x - gl_in[0].gl_Position.x, 0.0, 0.0);\n"
805 void verifyFeedbackResults (const std::vector<tcu::Vec4>& feedbackResult);
806 void verifyRenderedImage (const tcu::Surface& image, const std::vector<tcu::Vec4>& vertices);
907 static const tcu::Vec4 patchBufferData[4] =
909 tcu::Vec4( -0.9f, -0.9f, 0.0f, 1.0f ),
910 tcu::Vec4( -0.9f, 0.9f, 0.0f, 1.0f ),
911 tcu::Vec4
912 tcu::Vec4( 0.9f, 0.9f, 0.0f, 1.0f ),
1097 std::vector<tcu::Vec4> feedbackResults (getNumGeneratedElementsPerPrimitive() * getNumGeneratedPrimitives());
1098 const void* mappedPtr = gl.mapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, (glw::GLsizeiptr)(feedbackResults.size() * sizeof(tcu::Vec4)), GL_MAP_READ_BIT);
1107 deMemcpy(feedbackResults[0].getPtr(), mappedPtr, (int)(feedbackResults.size() * sizeof(tcu::Vec4)));
1160 void FeedbackPrimitiveTypeCase::verifyFeedbackResults (const std::vector<tcu::Vec4>& feedbackResult)
1172 const tcu::Vec4 primitiveVertex = feedbackResult[readNdx];
1204 const tcu::Vec4 generatedElementVertex = feedbackResult[readNdx];
1205 const tcu::Vec4 equalThreshold (1.0e-6f);
1231 static bool feedbackResultCompare (const tcu::Vec4& a, const tcu::Vec4& b)
1241 void FeedbackPrimitiveTypeCase::verifyRenderedImage (const tcu::Surface& image, const std::vector<tcu::Vec4>& tfVertices)
1243 std::vector<tcu::Vec4> vertices;
1248 std::unique_copy(tfVertices.begin(), tfVertices.end(), std::back_insert_iterator<std::vector<tcu::Vec4> >(vertices));
1300 const std::vector<tcu::Vec4> initialBuffer (feedbackElements, tcu::Vec4(-1.0f, -1.0f, -1.0f, -1.0f));
1308 gl.bufferData(GL_TRANSFORM_FEEDBACK_BUFFER, sizeof(tcu::Vec4) * initialBuffer.size(), initialBuffer[0].getPtr(), GL_STATIC_COPY);
1435 " vec4 y0 = mix(gl_in[0].gl_Position, gl_in[1].gl_Position, yweight);\n"
1436 " vec4 y1 = mix(gl_in[2].gl_Position, gl_in[3].gl_Position, yweight);\n"
1475 "out highp vec4 v_tessellationCoords;\n"
1483 " vec4 patchCentroid = vec4(0.0);\n"
1494 " gl_Position = patchCentroid + vec4(gl_TessCoord.x * tessDirX + gl_TessCoord.y * tessDirY + gl_TessCoord.z * tessDirZ, 0.0);\n";
1496 buf << " gl_Position = patchCentroid + vec4(gl_TessCoord.x * 0.8 - 0.4, gl_TessCoord.y * 0.8 - 0.4, 0.0, 0.0);\n";
1500 buf << " v_tessellationCoords = vec4(gl_TessCoord, 0.0);\n"
1520 "in highp vec4 v_tessellationCoords[];\n"
1521 "out highp vec4 tf_someVertexPosition;\n"
1540 " gl_Position = gl_in[ndx].gl_Position + vec4(-0.02, -0.02, 0.0, 0.0);\n"
1543 " gl_Position = gl_in[ndx].gl_Position + vec4( 0.02, 0.02, 0.0, 0.0);\n"
1547 " gl_Position = gl_in[ndx].gl_Position + vec4( 0.02, -0.02, 0.0, 0.0);\n"
1550 " gl_Position = gl_in[ndx].gl_Position + vec4(-0.02, 0.02, 0.0, 0.0);\n"
1558 " gl_Position = gl_in[ndx].gl_Position + vec4( 0.00, -0.02, 0.0, 0.0);\n"
1561 " gl_Position = gl_in[ndx].gl_Position + vec4( 0.02, 0.00, 0.0, 0.0);\n"
1564 " gl_Position = gl_in[ndx].gl_Position + vec4( -0.02, 0.00, 0.0, 0.0);\n"
1990 << "in highp vec4 a_position;\n"
2048 << " gl_Position = vec4(-2.0, 0.0, 0.0, 1.0);\n"
2320 const int numComponentsPerVertex = 8; // vec4 pos, vec4 color
2525 tcu::clear(errorMask.getAccess(), tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f));
2572 "flat in mediump vec4 v_color;\n"
2573 "layout(location = 0) out mediump vec4 fragColor;\n"
2620 " gl_Position = vec4(gl_TessCoord.x * 0.3 - 1.0, gl_TessCoord.y * 0.3 - 1.0, 0.0, 1.0);\n";
2623 " gl_Position = vec4(gl_TessCoord.x * 2.0 - 1.0, gl_TessCoord.y * 2.0 - 1.0, 0.0, 1.0);\n";
2642 "flat out highp vec4 v_color;\n"
2651 " vec4 aabb = vec4(min(gl_in[0].gl_Position.x, min(gl_in[1].gl_Position.x, gl_in[2].gl_Position.x)),\n"
2676 " vec4 dstArea;\n"
2682 " vec4 green = vec4(0.0, 1.0, 0.0, 1.0);\n"
2683 " vec4 yellow = vec4(1.0, 1.0, 0.0, 1.0);\n"
2684 " vec4
2686 " gl_Position = vec4(dstArea.x, dstArea.y, 0.0, 1.0);\n"
2690 " gl_Position = vec4(dstArea.x, dstArea.w, 0.0, 1.0);\n"
2694 " gl_Position = vec4(dstArea.z, dstArea.y, 0.0, 1.0);\n"
2698 " gl_Position = vec4(dstArea.z, dstArea.w, 0.0, 1.0);\n"
2715 " vec4 dstArea;\n"
2721 " vec4 green = vec4(0.0, 1.0, 0.0, 1.0);\n"
2722 " vec4 yellow = vec4(1.0, 1.0, 0.0, 1.0);\n"
2723 " vec4 outputColor = (((dstGridNdx.y + dstGridNdx.x) % 2) == 0) ? (green) : (yellow);\n"
2725 " gl_Position = vec4(dstArea.x, dstArea.y, 0.0, 1.0);\n"
2730 " gl_Position = vec4(dstArea.x, dstArea.w, 0.0, 1.0);\n"
2735 " gl_Position = vec4(dstArea.z, dstArea.y, 0.0, 1.0);\n"
2740 " gl_Position = vec4(dstArea.z, dstArea.w, 0.0, 1.0);\n"
2757 " vec4 outputSliceArea;\n"
2772 " vec4 outputSliceArea;\n"
2783 " vec4 green = vec4(0.0, 1.0, 0.0, 1.0);\n"
2784 " vec4 yellow = vec4(1.0, 1.0, 0.0, 1.0);\n"
2785 " vec4 outputColor = (((gl_InvocationID + ndx) % 2) == 0) ? (green) : (yellow);\n"
2788 " gl_Position = vec4(xpos, outputSliceArea.y, 0.0, 1.0);\n"
2792 " gl_Position = vec4(xpos, outputSliceArea.w, 0.0, 1.0);\n"
2849 static const tcu::Vec4 initialData[3] =
2851 tcu::Vec4(-1.0f, -1.0f, -1.0f, -1.0f),
2852 tcu::Vec4(-1.0f, -1.0f, -1.0f, -1.0f),
2853 tcu::Vec4(-1.0f, -1.0f, -1.0f, -1.0f),
2862 gl.bufferData(GL_TRANSFORM_FEEDBACK_BUFFER, (int)(sizeof(tcu::Vec4[3])), initialData, GL_DYNAMIC_READ);
2941 tcu::Vec4 feedbackValues[3];
2955 if (!tcu::boolAll(tcu::lessThan(tcu::abs(feedbackValues[ndx] - tcu::Vec4(3.0f)), tcu::Vec4(0.001f))))
2969 "in highp vec4 a_position;\n"
2970 "out highp vec4 tf_feedback;\n"
2974 " tf_feedback = vec4(1.0, 1.0, 1.0, 1.0);\n"
3007 "out highp vec4 tf_feedback;\n"
3011 " tf_feedback = vec4(2.0, 2.0, 2.0, 2.0);\n"
3023 "out highp vec4 tf_feedback;\n"
3028 " gl_Position = gl_in[ndx].gl_Position + vec4(float(ndx), float(ndx)*float(ndx), 0.0, 0.0);\n"
3029 " tf_feedback = vec4(3.0, 3.0, 3.0, 3.0);\n"