@@ -10,9 +10,9 @@ namespace Rendering
1010 [ SkipLocalsInit ]
1111 public static class ShaderVertexInputAttributeExtensions
1212 {
13- private static readonly Types . Type vector2Type ;
14- private static readonly Types . Type vector3Type ;
15- private static readonly Types . Type vector4Type ;
13+ private static readonly TypeMetadata vector2Type ;
14+ private static readonly TypeMetadata vector3Type ;
15+ private static readonly TypeMetadata vector4Type ;
1616
1717 static ShaderVertexInputAttributeExtensions ( )
1818 {
@@ -35,16 +35,15 @@ public static bool TryDeduceMeshChannel(this ShaderVertexInputAttribute attribut
3535 nameBuffer [ i ] = char . ToLower ( nameBuffer [ i ] ) ;
3636 }
3737
38- Types . Type attributeType = attribute . Type ;
39- if ( attributeType == vector2Type )
38+ if ( attribute . type == vector2Type )
4039 {
4140 if ( nameBuffer . IndexOf ( "uv" ) != - 1 )
4241 {
4342 meshChannel = MeshChannel . UV ;
4443 return true ;
4544 }
4645 }
47- else if ( attributeType == vector3Type )
46+ else if ( attribute . type == vector3Type )
4847 {
4948 if ( nameBuffer . IndexOf ( "normal" ) != - 1 )
5049 {
@@ -67,7 +66,7 @@ public static bool TryDeduceMeshChannel(this ShaderVertexInputAttribute attribut
6766 return true ;
6867 }
6968 }
70- else if ( attributeType == vector4Type )
69+ else if ( attribute . type == vector4Type )
7170 {
7271 if ( nameBuffer . IndexOf ( "color" ) != - 1 )
7372 {
0 commit comments