Tweaks to the transfer texture copy methods

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-06 17:39:48 +01:00
1 親 d9d64b96c0
コミット 328ffa1382
5ファイル変更
+47 -32

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

+2 -2
ファイルの表示
@@ -185,7 +185,7 @@ namespace ComputeSharp
public static void CopyTo<T>(this Texture2D<T> texture, ReadBackTexture2D<T> destination)
where T : unmanaged
{
texture.CopyTo(destination, 0, 0, texture.Width, texture.Height);
texture.CopyTo(destination, 0, 0, 0, 0, texture.Width, texture.Height);
}
/// <summary>
@@ -201,7 +201,7 @@ namespace ComputeSharp
public static void CopyTo<T>(this Texture2D<T> texture, ReadBackTexture2D<T> destination, int x, int y, int width, int height)
where T : unmanaged
{
texture.CopyTo(destination, x, y, width, height);
texture.CopyTo(destination, 0, 0, x, y, width, height);
}
/// <summary>
+2 -2
ファイルの表示
@@ -159,7 +159,7 @@ namespace ComputeSharp
public static void CopyTo<T>(this Texture3D<T> texture, ReadBackTexture3D<T> destination)
where T : unmanaged
{
texture.CopyTo(destination, 0, 0, 0, texture.Width, texture.Height, texture.Depth);
texture.CopyTo(destination, 0, 0, 0, 0, 0, 0, texture.Width, texture.Height, texture.Depth);
}
/// <summary>
@@ -177,7 +177,7 @@ namespace ComputeSharp
public static void CopyTo<T>(this Texture3D<T> texture, ReadBackTexture3D<T> destination, int x, int y, int z, int width, int height, int depth)
where T : unmanaged
{
texture.CopyTo(destination, x, y, z, width, height, depth);
texture.CopyTo(destination, 0, 0, 0, x, y, z, width, height, depth);
}
/// <summary>