Table of Contents

Class PrimitiveTypeExtensions

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Defines extensions and helpers for PrimitiveType.

public static class PrimitiveTypeExtensions
Inheritance
object
PrimitiveTypeExtensions

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

primitiveType PrimitiveType
controlPoints int

The 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

controlPoints must be in the range 1 to 32, inclusive.