vertex format ABI break

main
cosmonaut 2022-03-17 14:42:30 -07:00
parent 0fb7e98cb5
commit 1b5221f2c7
3 changed files with 8 additions and 3 deletions

@ -1 +1 @@
Subproject commit cd18b03c0f4cc1bd9feba57158925ac8837f5110 Subproject commit 2613c7b73cad1d9fea3cc1dc84435979a86f2ce1

View File

@ -124,7 +124,8 @@ namespace MoonWorks.Graphics
public enum VertexElementFormat public enum VertexElementFormat
{ {
Single, UInt,
Float,
Vector2, Vector2,
Vector3, Vector3,
Vector4, Vector4,

View File

@ -14,9 +14,13 @@
public static Graphics.VertexElementFormat TypeToVertexElementFormat(System.Type type) public static Graphics.VertexElementFormat TypeToVertexElementFormat(System.Type type)
{ {
if (type == typeof(uint))
{
return Graphics.VertexElementFormat.UInt;
}
if (type == typeof(float)) if (type == typeof(float))
{ {
return Graphics.VertexElementFormat.Single; return Graphics.VertexElementFormat.Float;
} }
else if (type == typeof(Math.Vector2)) else if (type == typeof(Math.Vector2))
{ {