More bug fixes, added TransferTexture2D<T> tests

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-06 14:28:37 +01:00
1 親 53012a5667
コミット 5f6efb0811
5ファイル変更
+184 -15

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -16,7 +16,7 @@ namespace ComputeSharp
public static void CopyTo<T>(this UploadTexture2D<T> texture, Texture2D<T> destination)
where T : unmanaged
{
destination.CopyFrom(texture, 0, 0, texture.Width, texture.Height);
destination.CopyFrom(texture, 0, 0, 0, 0, texture.Width, texture.Height);
}
/// <summary>
@@ -32,7 +32,7 @@ namespace ComputeSharp
public static void CopyTo<T>(this UploadTexture2D<T> texture, Texture2D<T> destination, int x, int y, int width, int height)
where T : unmanaged
{
destination.CopyFrom(texture, x, y, width, height);
destination.CopyFrom(texture, x, y, 0, 0, width, height);
}
}
}