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

260 lines
7.5 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
/// Texture sampler properties for filtering and wrapping modes.
/// </summary>
public partial class Sampler {
/// <summary>
/// Backing field for MagFilter.
/// </summary>
private System.Nullable<MagFilterEnum> m_magFilter;
/// <summary>
/// Backing field for MinFilter.
/// </summary>
private System.Nullable<MinFilterEnum> m_minFilter;
/// <summary>
/// Backing field for WrapS.
/// </summary>
private WrapSEnum m_wrapS = WrapSEnum.Repeat;
/// <summary>
/// Backing field for WrapT.
/// </summary>
private WrapTEnum m_wrapT = WrapTEnum.Repeat;
/// <summary>
/// Backing field for Name.
/// </summary>
private string m_name;
/// <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>
/// Magnification filter.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("magFilter")]
public System.Nullable<MagFilterEnum> MagFilter {
get {
return this.m_magFilter;
}
set {
this.m_magFilter = value;
}
}
/// <summary>
/// Minification filter.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("minFilter")]
public System.Nullable<MinFilterEnum> MinFilter {
get {
return this.m_minFilter;
}
set {
this.m_minFilter = value;
}
}
/// <summary>
/// S (U) wrapping mode.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("wrapS")]
public WrapSEnum WrapS {
get {
return this.m_wrapS;
}
set {
this.m_wrapS = value;
}
}
/// <summary>
/// T (V) wrapping mode.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("wrapT")]
public WrapTEnum WrapT {
get {
return this.m_wrapT;
}
set {
this.m_wrapT = value;
}
}
/// <summary>
/// The user-defined name of this object.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("name")]
public string Name {
get {
return this.m_name;
}
set {
this.m_name = 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 MagFilter property should be serialized.
/// </summary>
public bool ShouldSerializeMagFilter() {
return ((m_magFilter == null)
== false);
}
/// <summary>
/// This method is used to determine if the MinFilter property should be serialized.
/// </summary>
public bool ShouldSerializeMinFilter() {
return ((m_minFilter == null)
== false);
}
/// <summary>
/// This method is used to determine if the WrapS property should be serialized.
/// </summary>
public bool ShouldSerializeWrapS() {
return ((m_wrapS == WrapSEnum.Repeat)
== false);
}
/// <summary>
/// This method is used to determine if the WrapT property should be serialized.
/// </summary>
public bool ShouldSerializeWrapT() {
return ((m_wrapT == WrapTEnum.Repeat)
== false);
}
/// <summary>
/// This method is used to determine if the Name property should be serialized.
/// </summary>
public bool ShouldSerializeName() {
return ((m_name == 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);
}
/// <summary>
/// Enum part of the GLTF file schema
/// Magnification filter.
/// </summary>
public enum MagFilterEnum {
Nearest = 9728,
Linear = 9729,
}
/// <summary>
/// Enum part of the GLTF file schema
/// Minification filter.
/// </summary>
public enum MinFilterEnum {
Nearest = 9728,
Linear = 9729,
NearestMipmapNearest = 9984,
LinearMipmapNearest = 9985,
NearestMipmapLinear = 9986,
LinearMipmapLinear = 9987,
}
/// <summary>
/// Enum part of the GLTF file schema
/// S (U) wrapping mode.
/// </summary>
public enum WrapSEnum {
ClampToEdge = 33071,
MirroredRepeat = 33648,
Repeat = 10497,
}
/// <summary>
/// Enum part of the GLTF file schema
/// T (V) wrapping mode.
/// </summary>
public enum WrapTEnum {
ClampToEdge = 33071,
MirroredRepeat = 33648,
Repeat = 10497,
}
}
}