mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
242
Brutal.Gltf/GltfApi/GeneratedSchema/BufferView.gen.cs
Normal file
242
Brutal.Gltf/GltfApi/GeneratedSchema/BufferView.gen.cs
Normal file
|
|
@ -0,0 +1,242 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// A view into a buffer generally representing a subset of the buffer.
|
||||
/// </summary>
|
||||
public partial class BufferView {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Buffer.
|
||||
/// </summary>
|
||||
private int m_buffer;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteOffset.
|
||||
/// </summary>
|
||||
private int m_byteOffset = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteLength.
|
||||
/// </summary>
|
||||
private int m_byteLength;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteStride.
|
||||
/// </summary>
|
||||
private System.Nullable<int> m_byteStride;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Target.
|
||||
/// </summary>
|
||||
private System.Nullable<TargetEnum> m_target;
|
||||
|
||||
/// <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>
|
||||
/// The index of the buffer.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("buffer")]
|
||||
public int Buffer {
|
||||
get {
|
||||
return this.m_buffer;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Buffer", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_buffer = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The offset into the buffer in bytes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteOffset")]
|
||||
public int ByteOffset {
|
||||
get {
|
||||
return this.m_byteOffset;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteOffset", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_byteOffset = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The length of the bufferView in bytes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteLength")]
|
||||
public int ByteLength {
|
||||
get {
|
||||
return this.m_byteLength;
|
||||
}
|
||||
set {
|
||||
if ((value < 1)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteLength", value, "Expected value to be greater than or equal to 1");
|
||||
}
|
||||
this.m_byteLength = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The stride, in bytes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteStride")]
|
||||
public System.Nullable<int> ByteStride {
|
||||
get {
|
||||
return this.m_byteStride;
|
||||
}
|
||||
set {
|
||||
if ((value < 4)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteStride", value, "Expected value to be greater than or equal to 4");
|
||||
}
|
||||
if ((value > 252)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteStride", value, "Expected value to be less than or equal to 252");
|
||||
}
|
||||
this.m_byteStride = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The hint representing the intended GPU buffer type to use with this buffer view.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("target")]
|
||||
public System.Nullable<TargetEnum> Target {
|
||||
get {
|
||||
return this.m_target;
|
||||
}
|
||||
set {
|
||||
this.m_target = 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 ByteOffset property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeByteOffset() {
|
||||
return ((m_byteOffset == 0)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the ByteStride property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeByteStride() {
|
||||
return ((m_byteStride == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Target property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeTarget() {
|
||||
return ((m_target == null)
|
||||
== 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
|
||||
/// The hint representing the intended GPU buffer type to use with this buffer view.
|
||||
/// </summary>
|
||||
public enum TargetEnum {
|
||||
|
||||
ArrayBuffer = 34962,
|
||||
|
||||
ElementArrayBuffer = 34963,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue