public static PrimitiveType GetPrimitiveType(this XenkoTessellationMethod method)
        {
            if ((method & XenkoTessellationMethod.PointNormal) == 0)
            {
                return(PrimitiveType.TriangleList);
            }

            var controlsCount = method.PerformsAdjacentEdgeAverage() ? 12 : 3;

            return(PrimitiveType.PatchList.ControlPointCount(controlsCount));
        }
 public static bool PerformsAdjacentEdgeAverage(this XenkoTessellationMethod method)
 {
     return((method & XenkoTessellationMethod.AdjacentEdgeAverage) != 0);
 }