コード例 #1
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());
     }
 }