public static PrimitiveType GetPrimitiveType(this StrideTessellationMethod method) { if ((method & StrideTessellationMethod.PointNormal) == 0) { return(PrimitiveType.TriangleList); } var controlsCount = method.PerformsAdjacentEdgeAverage() ? 12 : 3; return(PrimitiveType.PatchList.ControlPointCount(controlsCount)); }
public static bool PerformsAdjacentEdgeAverage(this StrideTessellationMethod method) { return((method & StrideTessellationMethod.AdjacentEdgeAverage) != 0); }