Lines Matching refs:Vec2

86 	const tcu::Vec2	u				(p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w());  in isTriangleClockwise()
87 const tcu::Vec2 v (p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise()
104 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) in pixelNearLineSegment()
106 const tcu::Vec2 pixelCenterPosition = tcu::Vec2((float)pixel.x() + 0.5f, (float)pixel.y() + 0.5f); in pixelNearLineSegment()
114 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment()
115 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment()
145 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in pixelOnlyOnASharedEdge()
147 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge()
148 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge()
149 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge()
151 const tcu::Vec2 triangleScreenSpace[3] = in pixelOnlyOnASharedEdge()
153 …(triangleNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in pixelOnlyOnASharedEdge()
154 …(triangleNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in pixelOnlyOnASharedEdge()
155 …(triangleNormalizedDeviceSpace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in pixelOnlyOnASharedEdge()
175 float triangleArea (const tcu::Vec2& s0, const tcu::Vec2& s1, const tcu::Vec2& s2) in triangleArea()
177 const tcu::Vec2 u (s1.x() - s0.x(), s1.y() - s0.y()); in triangleArea()
178 const tcu::Vec2 v (s2.x() - s0.x(), s2.y() - s0.y()); in triangleArea()
186 const tcu::Vec2 normalizedDeviceSpace[3] = in getTriangleAABB()
188 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in getTriangleAABB()
189 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in getTriangleAABB()
190 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in getTriangleAABB()
192 const tcu::Vec2 screenSpace[3] = in getTriangleAABB()
194 …(normalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (fl… in getTriangleAABB()
195 …(normalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (fl… in getTriangleAABB()
196 …(normalizedDeviceSpace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (fl… in getTriangleAABB()
319 static bool isLineXMajor (const tcu::Vec2& lineScreenSpaceP0, const tcu::Vec2& lineScreenSpaceP1) in isLineXMajor()
326 const tcu::Vec2 lineScreenSpaceP0 = packedLine.swizzle(0, 1); in isPackedSSLineXMajor()
327 const tcu::Vec2 lineScreenSpaceP1 = packedLine.swizzle(2, 3); in isPackedSSLineXMajor()
340 tcu::Vec2 max;
341 tcu::Vec2 min;
344 …onWeights (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2, const tcu::Vec2& ndpixel) in calcTriangleInterpolationWeights()
350 const tcu::Vec2 nd0 = p0.swizzle(0, 1) / p0.w(); in calcTriangleInterpolationWeights()
351 const tcu::Vec2 nd1 = p1.swizzle(0, 1) / p1.w(); in calcTriangleInterpolationWeights()
352 const tcu::Vec2 nd2 = p2.swizzle(0, 1) / p2.w(); in calcTriangleInterpolationWeights()
405 …e calcLineInterpolationWeights (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb, float wb, cons… in calcLineInterpolationWeights()
456 …erpolationWeightsAxisProjected (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb, float wb, cons… in calcLineInterpolationWeightsAxisProjected()
515 LineInterpolationRange calcSingleSampleLineInterpolationRangeWithWeightEquation (const tcu::Vec2& p… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
517 const tcu::Vec2& pb, in calcSingleSampleLineInterpolationRangeWithWeightEquation()
527 const tcu::Vec2 corners[4] = in calcSingleSampleLineInterpolationRangeWithWeightEquation()
529 tcu::Vec2((float)pixel.x() + testSquarePos + 0.0f, (float)pixel.y() + testSquarePos + 0.0f), in calcSingleSampleLineInterpolationRangeWithWeightEquation()
530 …tcu::Vec2((float)pixel.x() + testSquarePos + 0.0f, (float)pixel.y() + testSquarePos + testSquar… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
531 …tcu::Vec2((float)pixel.x() + testSquarePos + testSquareSize, (float)pixel.y() + testSquarePos + te… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
532 …tcu::Vec2((float)pixel.x() + testSquarePos + testSquareSize, (float)pixel.y() + testSquarePos + 0.… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
544 …const tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
545 …const tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
553 …onRange calcSingleSampleLineInterpolationRange (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb… in calcSingleSampleLineInterpolationRange()
558 …ingleSampleLineInterpolationRangeAxisProjected (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb… in calcSingleSampleLineInterpolationRangeAxisProjected()
578 const tcu::Vec2 corners[4] = in interpolate()
580 …tcu::Vec2(((float)pixel.x() + testSquarePos + 0.0f) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
581 …tcu::Vec2(((float)pixel.x() + testSquarePos + 0.0f) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
582 …tcu::Vec2(((float)pixel.x() + testSquarePos + testSquareSize) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
583 …tcu::Vec2(((float)pixel.x() + testSquarePos + testSquareSize) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
623 const tcu::Vec2 corners[4] = in interpolate()
625 tcu::Vec2((float)pixel.x() + 0.0f, (float)pixel.y() + 0.0f), in interpolate()
626 tcu::Vec2((float)pixel.x() + 0.0f, (float)pixel.y() + 1.0f), in interpolate()
627 tcu::Vec2((float)pixel.x() + 1.0f, (float)pixel.y() + 1.0f), in interpolate()
628 tcu::Vec2((float)pixel.x() + 1.0f, (float)pixel.y() + 0.0f), in interpolate()
633 …const tcu::Vec2 pa = tcu::Vec2((scene.lines[lineNdx].positions[0].x() / wa + 1.0f) * 0.5f * (float… in interpolate()
635 …const tcu::Vec2 pb = tcu::Vec2((scene.lines[lineNdx].positions[1].x() / wb + 1.0f) * 0.5f * (float… in interpolate()
647 …const tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2… in interpolate()
648 …const tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2… in interpolate()
874 const tcu::Vec2 viewportSize = tcu::Vec2((float)surface.getWidth(), (float)surface.getHeight()); in verifyMultisampleLineGroupRasterization()
882 const tcu::Vec2 lineNormalizedDeviceSpace[2] = in verifyMultisampleLineGroupRasterization()
884 …tcu::Vec2(scene.lines[lineNdx].positions[0].x() / scene.lines[lineNdx].positions[0].w(), scene.lin… in verifyMultisampleLineGroupRasterization()
885 …tcu::Vec2(scene.lines[lineNdx].positions[1].x() / scene.lines[lineNdx].positions[1].w(), scene.lin… in verifyMultisampleLineGroupRasterization()
887 const tcu::Vec2 lineScreenSpace[2] = in verifyMultisampleLineGroupRasterization()
889 (lineNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupRasterization()
890 (lineNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupRasterization()
893 const tcu::Vec2 lineDir = tcu::normalize(lineScreenSpace[1] - lineScreenSpace[0]); in verifyMultisampleLineGroupRasterization()
894 const tcu::Vec2 lineNormalDir = tcu::Vec2(lineDir.y(), -lineDir.x()); in verifyMultisampleLineGroupRasterization()
896 const tcu::Vec2 lineQuadScreenSpace[4] = in verifyMultisampleLineGroupRasterization()
903 const tcu::Vec2 lineQuadNormalizedDeviceSpace[4] = in verifyMultisampleLineGroupRasterization()
905 lineQuadScreenSpace[0] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
906 lineQuadScreenSpace[1] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
907 lineQuadScreenSpace[2] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
908 lineQuadScreenSpace[3] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
927 const tcu::Vec2 viewportSize = tcu::Vec2((float)surface.getWidth(), (float)surface.getHeight()); in verifyMultisampleLineGroupInterpolation()
935 const tcu::Vec2 lineNormalizedDeviceSpace[2] = in verifyMultisampleLineGroupInterpolation()
937 …tcu::Vec2(scene.lines[lineNdx].positions[0].x() / scene.lines[lineNdx].positions[0].w(), scene.lin… in verifyMultisampleLineGroupInterpolation()
938 …tcu::Vec2(scene.lines[lineNdx].positions[1].x() / scene.lines[lineNdx].positions[1].w(), scene.lin… in verifyMultisampleLineGroupInterpolation()
940 const tcu::Vec2 lineScreenSpace[2] = in verifyMultisampleLineGroupInterpolation()
942 (lineNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupInterpolation()
943 (lineNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupInterpolation()
946 const tcu::Vec2 lineDir = tcu::normalize(lineScreenSpace[1] - lineScreenSpace[0]); in verifyMultisampleLineGroupInterpolation()
947 const tcu::Vec2 lineNormalDir = tcu::Vec2(lineDir.y(), -lineDir.x()); in verifyMultisampleLineGroupInterpolation()
949 const tcu::Vec2 lineQuadScreenSpace[4] = in verifyMultisampleLineGroupInterpolation()
956 const tcu::Vec2 lineQuadNormalizedDeviceSpace[4] = in verifyMultisampleLineGroupInterpolation()
958 lineQuadScreenSpace[0] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
959 lineQuadScreenSpace[1] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
960 lineQuadScreenSpace[2] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
961 lineQuadScreenSpace[3] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
996 const tcu::Vec2 viewportSize = tcu::Vec2((float)surface.getWidth(), (float)surface.getHeight()); in verifyMultisamplePointGroupRasterization()
1003 …const tcu::Vec2 pointNormalizedDeviceSpace = tcu::Vec2(scene.points[pointNdx].position.x() / sce… in verifyMultisamplePointGroupRasterization()
1004 …const tcu::Vec2 pointScreenSpace = (pointNormalizedDeviceSpace + tcu::Vec2(1.0f, 1.0f)) * 0.5f… in verifyMultisamplePointGroupRasterization()
1006 const tcu::Vec2 lineQuadNormalizedDeviceSpace[4] = in verifyMultisamplePointGroupRasterization()
1008 (pointScreenSpace + tcu::Vec2(-offset, -offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1009 (pointScreenSpace + tcu::Vec2(-offset, offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1010 (pointScreenSpace + tcu::Vec2( offset, offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1011 (pointScreenSpace + tcu::Vec2( offset, -offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1032 const tcu::Vec2 lineNormalizedDeviceSpace[2] = in genScreenSpaceLines()
1034 …tcu::Vec2(lines[lineNdx].positions[0].x() / lines[lineNdx].positions[0].w(), lines[lineNdx].positi… in genScreenSpaceLines()
1035 …tcu::Vec2(lines[lineNdx].positions[1].x() / lines[lineNdx].positions[1].w(), lines[lineNdx].positi… in genScreenSpaceLines()
1431 void setMaskMapCoverageBitForLine (int bitNdx, const tcu::Vec2& screenSpaceP0, const tcu::Vec2& scr… in setMaskMapCoverageBitForLine()
1475 const tcu::Vec2 pa = screenspaceLines[lineNdx].swizzle(0, 1); in setMaskMapCoverageBitForLines()
1476 const tcu::Vec2 pb = screenspaceLines[lineNdx].swizzle(2, 3); in setMaskMapCoverageBitForLines()
1555 const tcu::Vec2 pa = screenspaceLines[lineNdx].swizzle(0, 1); in verifyLineGroupPixelIndependentInterpolation()
1556 const tcu::Vec2 pb = screenspaceLines[lineNdx].swizzle(2, 3); in verifyLineGroupPixelIndependentInterpolation()
1700 tcu::Vec2 getLineCoordAtAxisCoord (const tcu::Vec2& pa, const tcu::Vec2& pb, bool isXAxis, float ax… in getLineCoordAtAxisCoord()
1713 return (isXAxis) ? (tcu::Vec2(resultFixedCoord, resultVaryingCoord)) in getLineCoordAtAxisCoord()
1714 : (tcu::Vec2(resultVaryingCoord, resultFixedCoord)); in getLineCoordAtAxisCoord()
1767 const tcu::Vec2 lineScreenSpaceP0 = screenspaceLines[lineNdx].swizzle(0, 1); in verifySinglesampleWideLineGroupInterpolation()
1768 const tcu::Vec2 lineScreenSpaceP1 = screenspaceLines[lineNdx].swizzle(2, 3); in verifySinglesampleWideLineGroupInterpolation()
1776 …const tcu::Vec2 offsetDirection = (isXMajor) ? (tcu::Vec2(0.0f, -1.0f)) : (tcu::Vec2(-1.0f, 0.0f)); in verifySinglesampleWideLineGroupInterpolation()
1777 const tcu::Vec2 offset = offsetDirection * offsetLength; in verifySinglesampleWideLineGroupInterpolation()
1808 …const tcu::Vec2 expandedP0 = getLineCoordAtAxisCoord(effectiveLines[lineNdx].swizzle(0, 1), e… in verifySinglesampleWideLineGroupInterpolation()
1809 …const tcu::Vec2 expandedP1 = getLineCoordAtAxisCoord(effectiveLines[lineNdx].swizzle(0, 1), e… in verifySinglesampleWideLineGroupInterpolation()
1879 const tcu::Vec2 pa = effectiveLines[lineNdx].swizzle(0, 1); in verifySinglesampleWideLineGroupInterpolation()
1880 const tcu::Vec2 pb = effectiveLines[lineNdx].swizzle(2, 3); in verifySinglesampleWideLineGroupInterpolation()
2057 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in calculateTriangleCoverage()
2059 tcu::Vec2(orderedP0.x() / orderedP0.w(), orderedP0.y() / orderedP0.w()), in calculateTriangleCoverage()
2060 tcu::Vec2(orderedP1.x() / orderedP1.w(), orderedP1.y() / orderedP1.w()), in calculateTriangleCoverage()
2061 tcu::Vec2(orderedP2.x() / orderedP2.w(), orderedP2.y() / orderedP2.w()), in calculateTriangleCoverage()
2063 const tcu::Vec2 triangleScreenSpace[3] = in calculateTriangleCoverage()
2065 …(triangleNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in calculateTriangleCoverage()
2066 …(triangleNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in calculateTriangleCoverage()
2067 …(triangleNormalizedDeviceSpace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in calculateTriangleCoverage()