Nerfed/Nerfed.Runtime/Graphics/IVertexType.cs

18 lines
465 B
C#

namespace Nerfed.Runtime.Graphics;
/// <summary>
/// Can be defined on your struct type to enable simplified vertex input state definition.
/// </summary>
public interface IVertexType
{
/// <summary>
/// An ordered list of the types in your vertex struct.
/// </summary>
static abstract VertexElementFormat[] Formats { get; }
/// <summary>
/// An ordered list of the offsets in your vertex struct.
/// </summary>
static abstract uint[] Offsets { get; }
}