示例#1
0
        public FeralTic.DX11.Resources.DX11ResourceTexture2D CopyResource(FeralTic.DX11.Resources.DX11ResourceTexture2D texture)
        {
            sw.Restart();
            try
            {
                decoder.CopyResource(texture);
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("CopyResource: {0}", e);
            }
            CopyTime = sw.Elapsed.TotalMilliseconds;

            return(texture);
        }