|
|
@@ -0,0 +1,110 @@
|
|
|
+// <auto-generated/>
|
|
|
+
|
|
|
+//------------------------------------------------------------------------------------------------
|
|
|
+// This file has been programatically generated; DON´T EDIT!
|
|
|
+//------------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
+#pragma warning disable SA1001
|
|
|
+#pragma warning disable SA1027
|
|
|
+#pragma warning disable SA1028
|
|
|
+#pragma warning disable SA1121
|
|
|
+#pragma warning disable SA1205
|
|
|
+#pragma warning disable SA1309
|
|
|
+#pragma warning disable SA1402
|
|
|
+#pragma warning disable SA1505
|
|
|
+#pragma warning disable SA1507
|
|
|
+#pragma warning disable SA1508
|
|
|
+#pragma warning disable SA1652
|
|
|
+
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Numerics;
|
|
|
+using System.Text.Json;
|
|
|
+
|
|
|
+namespace SharpGLTF.Schema2
|
|
|
+{
|
|
|
+ using Collections;
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Feature IDs stored in a GPU mesh instancing attribute
|
|
|
+ /// </summary>
|
|
|
+ #if NET6_0_OR_GREATER
|
|
|
+ [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]
|
|
|
+ #endif
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("SharpGLTF.CodeGen", "1.0.0.0")]
|
|
|
+ partial class MeshExtInstanceFeatureID : ExtraProperties
|
|
|
+ {
|
|
|
+
|
|
|
+ private Int32? _attribute;
|
|
|
+
|
|
|
+ private const Int32 _featureCountMinimum = 1;
|
|
|
+ private Int32 _featureCount;
|
|
|
+
|
|
|
+ private String _label;
|
|
|
+
|
|
|
+ private const Int32 _nullFeatureIdMinimum = 0;
|
|
|
+ private Int32? _nullFeatureId;
|
|
|
+
|
|
|
+ private const Int32 _propertyTableMinimum = 0;
|
|
|
+ private Int32? _propertyTable;
|
|
|
+
|
|
|
+
|
|
|
+ protected override void SerializeProperties(Utf8JsonWriter writer)
|
|
|
+ {
|
|
|
+ base.SerializeProperties(writer);
|
|
|
+ SerializeProperty(writer, "attribute", _attribute);
|
|
|
+ SerializeProperty(writer, "featureCount", _featureCount);
|
|
|
+ SerializeProperty(writer, "label", _label);
|
|
|
+ SerializeProperty(writer, "nullFeatureId", _nullFeatureId);
|
|
|
+ SerializeProperty(writer, "propertyTable", _propertyTable);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected override void DeserializeProperty(string jsonPropertyName, ref Utf8JsonReader reader)
|
|
|
+ {
|
|
|
+ switch (jsonPropertyName)
|
|
|
+ {
|
|
|
+ case "attribute": _attribute = DeserializePropertyValue<Int32?>(ref reader); break;
|
|
|
+ case "featureCount": _featureCount = DeserializePropertyValue<Int32>(ref reader); break;
|
|
|
+ case "label": _label = DeserializePropertyValue<String>(ref reader); break;
|
|
|
+ case "nullFeatureId": _nullFeatureId = DeserializePropertyValue<Int32?>(ref reader); break;
|
|
|
+ case "propertyTable": _propertyTable = DeserializePropertyValue<Int32?>(ref reader); break;
|
|
|
+ default: base.DeserializeProperty(jsonPropertyName,ref reader); break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// An object describing per-instance feature IDs.
|
|
|
+ /// </summary>
|
|
|
+ #if NET6_0_OR_GREATER
|
|
|
+ [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]
|
|
|
+ #endif
|
|
|
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("SharpGLTF.CodeGen", "1.0.0.0")]
|
|
|
+ partial class MeshExtInstanceFeatures : ExtraProperties
|
|
|
+ {
|
|
|
+
|
|
|
+ private const int _featureIdsMinItems = 1;
|
|
|
+ private List<MeshExtInstanceFeatureID> _featureIds;
|
|
|
+
|
|
|
+
|
|
|
+ protected override void SerializeProperties(Utf8JsonWriter writer)
|
|
|
+ {
|
|
|
+ base.SerializeProperties(writer);
|
|
|
+ SerializeProperty(writer, "featureIds", _featureIds, _featureIdsMinItems);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected override void DeserializeProperty(string jsonPropertyName, ref Utf8JsonReader reader)
|
|
|
+ {
|
|
|
+ switch (jsonPropertyName)
|
|
|
+ {
|
|
|
+ case "featureIds": DeserializePropertyList<MeshExtInstanceFeatureID>(ref reader, _featureIds); break;
|
|
|
+ default: base.DeserializeProperty(jsonPropertyName,ref reader); break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|