Exemple #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="curve"></param>
        /// <returns></returns>
        public static Audio.CurvePoint[] Convert( SharpDX.X3DAudio.CurvePoint[] curve )
        {
            if (curve==null) {
                return null;
            }

            return curve
                .Select( c => new Audio.CurvePoint{ Distance = c.Distance, DspSetting = c.DspSetting } )
                .ToArray();
        }
 public static InputElement[] Import(SharpDX.Direct3D11.InputElement[] src)
 {
     return src.Select(e =>
     {
         var dest = new InputElement();
         dest.AlignedByteOffset = e.AlignedByteOffset;
         dest.Classification = e.Classification;
         dest.Format = e.Format;
         dest.InstanceDataStepRate = e.InstanceDataStepRate;
         dest.SemanticIndex = e.SemanticIndex;
         dest.SemanticName = e.SemanticName;
         dest.Slot = e.Slot;
         return dest;
     }).ToArray();
 }