Пример #1
0
 public static long SaveTextureToFile(IntPtr device, IntPtr context, IntPtr resource, string path, int format)
 {
     if (IntPtr.Size == 8)
     {
         return(NativeMethods64.SaveTextureToFile(device, context, resource, path, format));
     }
     else
     {
         return(NativeMethods32.SaveTextureToFile(device, context, resource, path, format));
     }
 }