18 lines
465 B
C#
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; }
|
||
|
}
|