Skip to content

Commit 69aaef7

Browse files
committed
Added AttributeFormat predefined values
1 parent 737bb8c commit 69aaef7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/SharpGLTF.Core/Memory/AttributeFormat.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ internal string _GetDebuggerDisplay()
3737

3838
#endregion
3939

40+
#region predefined values
41+
42+
public static readonly AttributeFormat Float1 = new AttributeFormat(ENCODING.FLOAT);
43+
public static readonly AttributeFormat Float2 = new AttributeFormat(DIMENSIONS.VEC2 ,ENCODING.FLOAT);
44+
public static readonly AttributeFormat Float3 = new AttributeFormat(DIMENSIONS.VEC3, ENCODING.FLOAT);
45+
public static readonly AttributeFormat Float4 = new AttributeFormat(DIMENSIONS.VEC4, ENCODING.FLOAT);
46+
public static readonly AttributeFormat Float2x2 = new AttributeFormat(DIMENSIONS.MAT2, ENCODING.FLOAT);
47+
public static readonly AttributeFormat Float3x3 = new AttributeFormat(DIMENSIONS.MAT3, ENCODING.FLOAT);
48+
public static readonly AttributeFormat Float4x4 = new AttributeFormat(DIMENSIONS.MAT4, ENCODING.FLOAT);
49+
50+
#endregion
51+
4052
#region constructors
4153

4254
public static implicit operator AttributeFormat(ENCODING enc) { return new AttributeFormat(enc); }

0 commit comments

Comments
 (0)