mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
* Tiled Rework * fix failing tests * really fix failing tests
23 lines
636 B
C#
23 lines
636 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace MonoGame.Extended.Graphics
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct DrawCall<TDrawCallData> : IComparable<DrawCall<TDrawCallData>> where TDrawCallData : IDrawCallData
|
|
{
|
|
public ulong Key;
|
|
public int BaseVertex;
|
|
public int StartIndex;
|
|
public int PrimitiveCount;
|
|
public PrimitiveType PrimitiveType;
|
|
public TDrawCallData Data;
|
|
|
|
public int CompareTo(DrawCall<TDrawCallData> other)
|
|
{
|
|
return Key.CompareTo(other.Key);
|
|
}
|
|
}
|
|
}
|