• Home
  • Raw
  • Download

Lines Matching refs:Vec2

82 	const tcu::Vec2	u				(p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w());  in isTriangleClockwise()
83 const tcu::Vec2 v (p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise()
100 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) in pixelNearLineSegment()
102 const tcu::Vec2 pixelCenterPosition = tcu::Vec2((float)pixel.x() + 0.5f, (float)pixel.y() + 0.5f); in pixelNearLineSegment()
110 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment()
111 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment()
141 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in pixelOnlyOnASharedEdge()
143 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge()
144 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge()
145 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge()
147 const tcu::Vec2 triangleScreenSpace[3] = in pixelOnlyOnASharedEdge()
149 …(triangleNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in pixelOnlyOnASharedEdge()
150 …(triangleNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in pixelOnlyOnASharedEdge()
151 …(triangleNormalizedDeviceSpace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in pixelOnlyOnASharedEdge()
171 float triangleArea (const tcu::Vec2& s0, const tcu::Vec2& s1, const tcu::Vec2& s2) in triangleArea()
173 const tcu::Vec2 u (s1.x() - s0.x(), s1.y() - s0.y()); in triangleArea()
174 const tcu::Vec2 v (s2.x() - s0.x(), s2.y() - s0.y()); in triangleArea()
182 const tcu::Vec2 normalizedDeviceSpace[3] = in getTriangleAABB()
184 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in getTriangleAABB()
185 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in getTriangleAABB()
186 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in getTriangleAABB()
188 const tcu::Vec2 screenSpace[3] = in getTriangleAABB()
190 …(normalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (fl… in getTriangleAABB()
191 …(normalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (fl… in getTriangleAABB()
192 …(normalizedDeviceSpace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (fl… in getTriangleAABB()
315 static bool isLineXMajor (const tcu::Vec2& lineScreenSpaceP0, const tcu::Vec2& lineScreenSpaceP1) in isLineXMajor()
322 const tcu::Vec2 lineScreenSpaceP0 = packedLine.swizzle(0, 1); in isPackedSSLineXMajor()
323 const tcu::Vec2 lineScreenSpaceP1 = packedLine.swizzle(2, 3); in isPackedSSLineXMajor()
336 tcu::Vec2 max;
337 tcu::Vec2 min;
340 …onWeights (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2, const tcu::Vec2& ndpixel) in calcTriangleInterpolationWeights()
346 const tcu::Vec2 nd0 = p0.swizzle(0, 1) / p0.w(); in calcTriangleInterpolationWeights()
347 const tcu::Vec2 nd1 = p1.swizzle(0, 1) / p1.w(); in calcTriangleInterpolationWeights()
348 const tcu::Vec2 nd2 = p2.swizzle(0, 1) / p2.w(); in calcTriangleInterpolationWeights()
401 …e calcLineInterpolationWeights (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb, float wb, cons… in calcLineInterpolationWeights()
452 …erpolationWeightsAxisProjected (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb, float wb, cons… in calcLineInterpolationWeightsAxisProjected()
511 LineInterpolationRange calcSingleSampleLineInterpolationRangeWithWeightEquation (const tcu::Vec2& p… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
513 const tcu::Vec2& pb, in calcSingleSampleLineInterpolationRangeWithWeightEquation()
523 const tcu::Vec2 corners[4] = in calcSingleSampleLineInterpolationRangeWithWeightEquation()
525 tcu::Vec2((float)pixel.x() + testSquarePos + 0.0f, (float)pixel.y() + testSquarePos + 0.0f), in calcSingleSampleLineInterpolationRangeWithWeightEquation()
526 …tcu::Vec2((float)pixel.x() + testSquarePos + 0.0f, (float)pixel.y() + testSquarePos + testSquar… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
527 …tcu::Vec2((float)pixel.x() + testSquarePos + testSquareSize, (float)pixel.y() + testSquarePos + te… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
528 …tcu::Vec2((float)pixel.x() + testSquarePos + testSquareSize, (float)pixel.y() + testSquarePos + 0.… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
540 …const tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
541 …const tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2… in calcSingleSampleLineInterpolationRangeWithWeightEquation()
549 …onRange calcSingleSampleLineInterpolationRange (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb… in calcSingleSampleLineInterpolationRange()
554 …ingleSampleLineInterpolationRangeAxisProjected (const tcu::Vec2& pa, float wa, const tcu::Vec2& pb… in calcSingleSampleLineInterpolationRangeAxisProjected()
574 const tcu::Vec2 corners[4] = in interpolate()
576 …tcu::Vec2(((float)pixel.x() + testSquarePos + 0.0f) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
577 …tcu::Vec2(((float)pixel.x() + testSquarePos + 0.0f) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
578 …tcu::Vec2(((float)pixel.x() + testSquarePos + testSquareSize) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
579 …tcu::Vec2(((float)pixel.x() + testSquarePos + testSquareSize) / (float)viewportSize.x() * 2.0f - 1… in interpolate()
618 const tcu::Vec2 corners[4] = in interpolate()
620 tcu::Vec2((float)pixel.x() + 0.0f, (float)pixel.y() + 0.0f), in interpolate()
621 tcu::Vec2((float)pixel.x() + 0.0f, (float)pixel.y() + 1.0f), in interpolate()
622 tcu::Vec2((float)pixel.x() + 1.0f, (float)pixel.y() + 1.0f), in interpolate()
623 tcu::Vec2((float)pixel.x() + 1.0f, (float)pixel.y() + 0.0f), in interpolate()
628 …const tcu::Vec2 pa = tcu::Vec2((scene.lines[lineNdx].positions[0].x() / wa + 1.0f) * 0.5f * (float… in interpolate()
630 …const tcu::Vec2 pb = tcu::Vec2((scene.lines[lineNdx].positions[1].x() / wb + 1.0f) * 0.5f * (float… in interpolate()
642 …const tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2… in interpolate()
643 …const tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2… in interpolate()
866 float calculateIntersectionParameter (const tcu::Vec2 line[2], float w, int componentNdx) in calculateIntersectionParameter()
876 void applyClippingBox (tcu::Vec2 line[2], float w) in applyClippingBox()
914 const tcu::Vec2 viewportSize = tcu::Vec2((float)surface.getWidth(), (float)surface.getHeight()); in verifyMultisampleLineGroupRasterization()
922 tcu::Vec2 lineNormalizedDeviceSpace[2] = in verifyMultisampleLineGroupRasterization()
924 …tcu::Vec2(scene.lines[lineNdx].positions[0].x() / scene.lines[lineNdx].positions[0].w(), scene.lin… in verifyMultisampleLineGroupRasterization()
925 …tcu::Vec2(scene.lines[lineNdx].positions[1].x() / scene.lines[lineNdx].positions[1].w(), scene.lin… in verifyMultisampleLineGroupRasterization()
933 const tcu::Vec2 lineScreenSpace[2] = in verifyMultisampleLineGroupRasterization()
935 (lineNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupRasterization()
936 (lineNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupRasterization()
939 const tcu::Vec2 lineDir = tcu::normalize(lineScreenSpace[1] - lineScreenSpace[0]); in verifyMultisampleLineGroupRasterization()
940 const tcu::Vec2 lineNormalDir = tcu::Vec2(lineDir.y(), -lineDir.x()); in verifyMultisampleLineGroupRasterization()
942 const tcu::Vec2 lineQuadScreenSpace[4] = in verifyMultisampleLineGroupRasterization()
949 const tcu::Vec2 lineQuadNormalizedDeviceSpace[4] = in verifyMultisampleLineGroupRasterization()
951 lineQuadScreenSpace[0] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
952 lineQuadScreenSpace[1] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
953 lineQuadScreenSpace[2] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
954 lineQuadScreenSpace[3] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupRasterization()
973 const tcu::Vec2 viewportSize = tcu::Vec2((float)surface.getWidth(), (float)surface.getHeight()); in verifyMultisampleLineGroupInterpolation()
981 const tcu::Vec2 lineNormalizedDeviceSpace[2] = in verifyMultisampleLineGroupInterpolation()
983 …tcu::Vec2(scene.lines[lineNdx].positions[0].x() / scene.lines[lineNdx].positions[0].w(), scene.lin… in verifyMultisampleLineGroupInterpolation()
984 …tcu::Vec2(scene.lines[lineNdx].positions[1].x() / scene.lines[lineNdx].positions[1].w(), scene.lin… in verifyMultisampleLineGroupInterpolation()
986 const tcu::Vec2 lineScreenSpace[2] = in verifyMultisampleLineGroupInterpolation()
988 (lineNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupInterpolation()
989 (lineNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * viewportSize, in verifyMultisampleLineGroupInterpolation()
992 const tcu::Vec2 lineDir = tcu::normalize(lineScreenSpace[1] - lineScreenSpace[0]); in verifyMultisampleLineGroupInterpolation()
993 const tcu::Vec2 lineNormalDir = tcu::Vec2(lineDir.y(), -lineDir.x()); in verifyMultisampleLineGroupInterpolation()
995 const tcu::Vec2 lineQuadScreenSpace[4] = in verifyMultisampleLineGroupInterpolation()
1002 const tcu::Vec2 lineQuadNormalizedDeviceSpace[4] = in verifyMultisampleLineGroupInterpolation()
1004 lineQuadScreenSpace[0] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
1005 lineQuadScreenSpace[1] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
1006 lineQuadScreenSpace[2] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
1007 lineQuadScreenSpace[3] / viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisampleLineGroupInterpolation()
1042 const tcu::Vec2 viewportSize = tcu::Vec2((float)surface.getWidth(), (float)surface.getHeight()); in verifyMultisamplePointGroupRasterization()
1049 …const tcu::Vec2 pointNormalizedDeviceSpace = tcu::Vec2(scene.points[pointNdx].position.x() / sce… in verifyMultisamplePointGroupRasterization()
1050 …const tcu::Vec2 pointScreenSpace = (pointNormalizedDeviceSpace + tcu::Vec2(1.0f, 1.0f)) * 0.5f… in verifyMultisamplePointGroupRasterization()
1052 const tcu::Vec2 lineQuadNormalizedDeviceSpace[4] = in verifyMultisamplePointGroupRasterization()
1054 (pointScreenSpace + tcu::Vec2(-offset, -offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1055 (pointScreenSpace + tcu::Vec2(-offset, offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1056 (pointScreenSpace + tcu::Vec2( offset, offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1057 (pointScreenSpace + tcu::Vec2( offset, -offset))/ viewportSize * 2.0f - tcu::Vec2(1.0f, 1.0f), in verifyMultisamplePointGroupRasterization()
1078 const tcu::Vec2 lineNormalizedDeviceSpace[2] = in genScreenSpaceLines()
1080 …tcu::Vec2(lines[lineNdx].positions[0].x() / lines[lineNdx].positions[0].w(), lines[lineNdx].positi… in genScreenSpaceLines()
1081 …tcu::Vec2(lines[lineNdx].positions[1].x() / lines[lineNdx].positions[1].w(), lines[lineNdx].positi… in genScreenSpaceLines()
1485 void setMaskMapCoverageBitForLine (int bitNdx, const tcu::Vec2& screenSpaceP0, const tcu::Vec2& scr… in setMaskMapCoverageBitForLine()
1529 const tcu::Vec2 pa = screenspaceLines[lineNdx].swizzle(0, 1); in setMaskMapCoverageBitForLines()
1530 const tcu::Vec2 pb = screenspaceLines[lineNdx].swizzle(2, 3); in setMaskMapCoverageBitForLines()
1609 const tcu::Vec2 pa = screenspaceLines[lineNdx].swizzle(0, 1); in verifyLineGroupPixelIndependentInterpolation()
1610 const tcu::Vec2 pb = screenspaceLines[lineNdx].swizzle(2, 3); in verifyLineGroupPixelIndependentInterpolation()
1754 tcu::Vec2 getLineCoordAtAxisCoord (const tcu::Vec2& pa, const tcu::Vec2& pb, bool isXAxis, float ax… in getLineCoordAtAxisCoord()
1767 return (isXAxis) ? (tcu::Vec2(resultFixedCoord, resultVaryingCoord)) in getLineCoordAtAxisCoord()
1768 : (tcu::Vec2(resultVaryingCoord, resultFixedCoord)); in getLineCoordAtAxisCoord()
1821 const tcu::Vec2 lineScreenSpaceP0 = screenspaceLines[lineNdx].swizzle(0, 1); in verifySinglesampleWideLineGroupInterpolation()
1822 const tcu::Vec2 lineScreenSpaceP1 = screenspaceLines[lineNdx].swizzle(2, 3); in verifySinglesampleWideLineGroupInterpolation()
1830 …const tcu::Vec2 offsetDirection = (isXMajor) ? (tcu::Vec2(0.0f, -1.0f)) : (tcu::Vec2(-1.0f, 0.0f)); in verifySinglesampleWideLineGroupInterpolation()
1831 const tcu::Vec2 offset = offsetDirection * offsetLength; in verifySinglesampleWideLineGroupInterpolation()
1862 …const tcu::Vec2 expandedP0 = getLineCoordAtAxisCoord(effectiveLines[lineNdx].swizzle(0, 1), e… in verifySinglesampleWideLineGroupInterpolation()
1863 …const tcu::Vec2 expandedP1 = getLineCoordAtAxisCoord(effectiveLines[lineNdx].swizzle(0, 1), e… in verifySinglesampleWideLineGroupInterpolation()
1933 const tcu::Vec2 pa = effectiveLines[lineNdx].swizzle(0, 1); in verifySinglesampleWideLineGroupInterpolation()
1934 const tcu::Vec2 pb = effectiveLines[lineNdx].swizzle(2, 3); in verifySinglesampleWideLineGroupInterpolation()
2111 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in calculateTriangleCoverage()
2113 tcu::Vec2(orderedP0.x() / orderedP0.w(), orderedP0.y() / orderedP0.w()), in calculateTriangleCoverage()
2114 tcu::Vec2(orderedP1.x() / orderedP1.w(), orderedP1.y() / orderedP1.w()), in calculateTriangleCoverage()
2115 tcu::Vec2(orderedP2.x() / orderedP2.w(), orderedP2.y() / orderedP2.w()), in calculateTriangleCoverage()
2117 const tcu::Vec2 triangleScreenSpace[3] = in calculateTriangleCoverage()
2119 …(triangleNormalizedDeviceSpace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in calculateTriangleCoverage()
2120 …(triangleNormalizedDeviceSpace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in calculateTriangleCoverage()
2121 …(triangleNormalizedDeviceSpace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.… in calculateTriangleCoverage()