Class PrimitiveTopologyExtension
Helper methods for primitive topology.
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public static class PrimitiveTopologyExtension
Methods
ToIndexCount(PrimitiveTopology, int)
Convert primitive count to index count.
Declaration
public static int ToIndexCount(this PrimitiveTopology primitiveTopology, int primitiveCount)
Parameters
Type | Name | Description |
---|---|---|
PrimitiveTopology | primitiveTopology | The primitive topology. |
int | primitiveCount | The primitive count. |
Returns
Type | Description |
---|---|
int | The index count. |
ToPrimitiveCount(PrimitiveTopology, int)
Convert index count to primitive count.
Declaration
public static int ToPrimitiveCount(this PrimitiveTopology primitiveTopology, int elementCount)
Parameters
Type | Name | Description |
---|---|---|
PrimitiveTopology | primitiveTopology | The primitive topology. |
int | elementCount | The index count. |
Returns
Type | Description |
---|---|
int | The primitive count. |