Struct SortKey
Struct that represent a mesh to render.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics.Sorting
Assembly: Evergine.Framework.dll
Syntax
public struct SortKey : IComparable<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 element index.
Declaration
public int Index
  Field Value
| Type | Description | 
|---|---|
| int | 
Key
The sort key.
Declaration
public ulong Key
  Field Value
| Type | Description | 
|---|---|
| ulong | 
Methods
CompareTo(SortKey)
Compare to method.
Declaration
public int CompareTo(SortKey other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SortKey | other | The other key to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| int | The compare result.  |