Struct SortKey
Struct that represents a mesh to render.
Namespace: Evergine.Framework.Graphics.Sorting
Assembly: Evergine.Framework.dll
Syntax
public struct SortKey
Constructors
SortKey(ulong, int)
Initializes a new instance of the SortKey struct.
Declaration
public SortKey(ulong key, int index)
Parameters
Type | Name | Description |
---|---|---|
ulong | key | The key. |
int | index | The index. |
Fields
Index
The index of the element.
Declaration
public int Index
Field Value
Type | Description |
---|---|
int |
Key
The sorting key.
Declaration
public ulong Key
Field Value
Type | Description |
---|---|
ulong |
Methods
CompareTo(SortKey)
CompareTo method.
Declaration
public int CompareTo(SortKey other)
Parameters
Type | Name | Description |
---|---|---|
SortKey | other | The other key to compare. |
Returns
Type | Description |
---|---|
int | The comparison result. |