diff --git a/lib/RefreshCS b/lib/RefreshCS index cd18b03c..2613c7b7 160000 --- a/lib/RefreshCS +++ b/lib/RefreshCS @@ -1 +1 @@ -Subproject commit cd18b03c0f4cc1bd9feba57158925ac8837f5110 +Subproject commit 2613c7b73cad1d9fea3cc1dc84435979a86f2ce1 diff --git a/src/Graphics/RefreshEnums.cs b/src/Graphics/RefreshEnums.cs index 138b1101..03fd4bc7 100644 --- a/src/Graphics/RefreshEnums.cs +++ b/src/Graphics/RefreshEnums.cs @@ -124,7 +124,8 @@ namespace MoonWorks.Graphics public enum VertexElementFormat { - Single, + UInt, + Float, Vector2, Vector3, Vector4, diff --git a/src/Graphics/Utility/Conversions.cs b/src/Graphics/Utility/Conversions.cs index 3aad7427..141d1c9d 100644 --- a/src/Graphics/Utility/Conversions.cs +++ b/src/Graphics/Utility/Conversions.cs @@ -14,9 +14,13 @@ public static Graphics.VertexElementFormat TypeToVertexElementFormat(System.Type type) { + if (type == typeof(uint)) + { + return Graphics.VertexElementFormat.UInt; + } if (type == typeof(float)) { - return Graphics.VertexElementFormat.Single; + return Graphics.VertexElementFormat.Float; } else if (type == typeof(Math.Vector2)) {