Пример #1
0
        /// <summary>Copy data from one texture to another</summary>
        public static void copyTexture(this IDeviceContext context, ITexture dest, ITexture source)
        {
            CopyTextureAttribs copyAttribs = new CopyTextureAttribs(false);

            copyAttribs.pSrcTexture = source.nativeCast();
            copyAttribs.pDstTexture = dest.nativeCast();
            context.CopyTexture(ref copyAttribs);
        }