Esempio n. 1
0
 public static byte ToFormat(this VertexFormat _this, Version version)
 {
     if (VertexFormat2019Relevant(version))
     {
         return((byte)_this.ToVertexFormat2019());
     }
     else if (VertexFormat2017Relevant(version))
     {
         return((byte)_this.ToVertexFormat2017());
     }
     else
     {
         return((byte)_this.ToVertexChannelFormat());
     }
 }
Esempio n. 2
0
 public static byte ToFormat(this VertexFormat _this, Version version)
 {
     if (version.IsGreaterEqual(2019))
     {
         return((byte)_this.ToVertexFormatV2019());
     }
     else if (version.IsGreaterEqual(2017))
     {
         return((byte)_this.ToVertexFormatV2017());
     }
     else
     {
         return((byte)_this.ToVertexChannelFormat());
     }
 }