Class PrimitiveTypeExtensions
Defines extensions and helpers for PrimitiveType.
public static class PrimitiveTypeExtensions
- Inheritance
-
objectPrimitiveTypeExtensions
Methods
ControlPointCount(PrimitiveType, int)
Interpret the input vertex data type as a patch list for tesselation with a specific number of control points.
public static PrimitiveType ControlPointCount(this PrimitiveType primitiveType, int controlPoints)
Parameters
primitiveTypePrimitiveTypecontrolPointsintThe number of control points. It must be a value in the range 1 to 32, inclusive.
Returns
- PrimitiveType
A PrimitiveType value that represents a patch list with the specified number of control points.
Exceptions
- ArgumentException
Control points apply only to PatchList.
- ArgumentOutOfRangeException
controlPointsmust be in the range 1 to 32, inclusive.