brutal/brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/AccessorSparse.gen.cs
2026-10-15 14:12:02 +13:00

150 lines
4.9 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Brutal.GltfApi {
using System.Linq;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
/// <summary>
/// Object part of the GLTF file schema
/// Sparse storage of accessor values that deviate from their initialization value.
/// </summary>
public partial class AccessorSparse {
/// <summary>
/// Backing field for Count.
/// </summary>
private int m_count;
/// <summary>
/// Backing field for Indices.
/// </summary>
private AccessorSparseIndices m_indices;
/// <summary>
/// Backing field for Values.
/// </summary>
private AccessorSparseValues m_values;
/// <summary>
/// Backing field for Extensions.
/// </summary>
private System.Collections.Generic.Dictionary<string, object> m_extensions;
/// <summary>
/// Backing field for Extras.
/// </summary>
private Extras m_extras;
/// <summary>
/// Number of deviating accessor values stored in the sparse array.
/// </summary>
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("count")]
public int Count {
get {
return this.m_count;
}
set {
if ((value < 1)) {
throw new System.ArgumentOutOfRangeException("Count", value, "Expected value to be greater than or equal to 1");
}
this.m_count = value;
}
}
/// <summary>
/// An object pointing to a buffer view containing the indices of deviating accessor values. The number of indices is equal to `count`. Indices **MUST** strictly increase.
/// </summary>
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("indices")]
public AccessorSparseIndices Indices {
get {
return this.m_indices;
}
set {
this.m_indices = value;
}
}
/// <summary>
/// An object pointing to a buffer view containing the deviating accessor values.
/// </summary>
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("values")]
public AccessorSparseValues Values {
get {
return this.m_values;
}
set {
this.m_values = value;
}
}
/// <summary>
/// JSON object with extension-specific objects.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")]
public System.Collections.Generic.Dictionary<string, object> Extensions {
get {
return this.m_extensions;
}
set {
this.m_extensions = value;
}
}
/// <summary>
/// Application-specific data.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")]
public Extras Extras {
get {
return this.m_extras;
}
set {
this.m_extras = value;
}
}
/// <summary>
/// This method is used to determine if the Indices property should be serialized.
/// </summary>
public bool ShouldSerializeIndices() {
return ((m_indices == null)
== false);
}
/// <summary>
/// This method is used to determine if the Values property should be serialized.
/// </summary>
public bool ShouldSerializeValues() {
return ((m_values == null)
== false);
}
/// <summary>
/// This method is used to determine if the Extensions property should be serialized.
/// </summary>
public bool ShouldSerializeExtensions() {
return ((m_extensions == null)
== false);
}
/// <summary>
/// This method is used to determine if the Extras property should be serialized.
/// </summary>
public bool ShouldSerializeExtras() {
return ((m_extras == null)
== false);
}
}
}