Added main support for .NET Standard 2.0
このコミットが含まれているのは:
1 親
880f501b55
コミット
955f6be4f9
4ファイル変更
+28
-1
検索条件に一致するファイルはありません
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -3,6 +3,11 @@ using System.Diagnostics.Contracts;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Graphics.Buffers.Abstract;
|
||||
using Microsoft.Toolkit.Diagnostics;
|
||||
#if NET5_0
|
||||
using GC = System.GC;
|
||||
#else
|
||||
using GC = ComputeSharp.System.GC;
|
||||
#endif
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace ComputeSharp
|
||||
texture.GetData(destination.AsSpan(), 0, 0, texture.Width, texture.Height);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture2D{T}"/> instance and writes them into a target array.
|
||||
/// </summary>
|
||||
@@ -68,6 +69,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.GetData(destination.AsSpan(), x, y);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture2D{T}"/> instance and writes them into a target array.
|
||||
@@ -98,6 +100,7 @@ namespace ComputeSharp
|
||||
texture.GetData(destination.AsSpan(offset), 0, 0, texture.Width, texture.Height);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture2D{T}"/> instance and writes them into a target array.
|
||||
/// </summary>
|
||||
@@ -112,6 +115,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.GetData(destination.AsSpan(offset), x, y);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture2D{T}"/> instance and writes them into a target array.
|
||||
@@ -143,6 +147,7 @@ namespace ComputeSharp
|
||||
texture.GetData(destination, 0, 0, texture.Width, texture.Height);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture2D{T}"/> instance and writes them into a target <see cref="Span{T}"/>.
|
||||
/// </summary>
|
||||
@@ -159,6 +164,7 @@ namespace ComputeSharp
|
||||
|
||||
texture.GetData(destination, offsetX, offsetY, width, height);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture2D{T}"/> instance and writes them into a target <see cref="Span{T}"/>.
|
||||
@@ -203,6 +209,7 @@ namespace ComputeSharp
|
||||
texture.SetData(source.AsSpan(), 0, 0, texture.Width, texture.Height);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture2D{T}"/> instance.
|
||||
/// </summary>
|
||||
@@ -216,6 +223,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.SetData(source.AsSpan(), x, y);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture2D{T}"/> instance.
|
||||
@@ -233,6 +241,7 @@ namespace ComputeSharp
|
||||
texture.SetData(source.AsSpan(), x, y, width, height);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture2D{T}"/> instance.
|
||||
/// </summary>
|
||||
@@ -247,6 +256,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.SetData(source.AsSpan(offset), x, y);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture2D{T}"/> instance.
|
||||
@@ -278,6 +288,7 @@ namespace ComputeSharp
|
||||
texture.SetData(source, 0, 0, texture.Width, texture.Height);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <see cref="ReadOnlySpan{T}"/> to a specified area of the current <see cref="Texture2D{T}"/> instance.
|
||||
/// </summary>
|
||||
@@ -294,6 +305,7 @@ namespace ComputeSharp
|
||||
|
||||
texture.SetData(source, offsetX, offsetY, width, height);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <see cref="ReadOnlySpan{T}"/> to a specified area of the current <see cref="Texture2D{T}"/> instance.
|
||||
|
||||
@@ -66,6 +66,7 @@ namespace ComputeSharp
|
||||
texture.GetData(destination.AsSpan(offset), 0, 0, 0, texture.Width, texture.Height, texture.Depth);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture3D{T}"/> instance and writes them into a target array.
|
||||
/// </summary>
|
||||
@@ -81,6 +82,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.GetData(destination.AsSpan(offset), x, y, z);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture3D{T}"/> instance and writes them into a target array.
|
||||
@@ -113,6 +115,7 @@ namespace ComputeSharp
|
||||
texture.GetData(destination, 0, 0, 0, texture.Width, texture.Height, texture.Depth);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture3D{T}"/> instance and writes them into a target <see cref="Span{T}"/>.
|
||||
/// </summary>
|
||||
@@ -131,6 +134,7 @@ namespace ComputeSharp
|
||||
|
||||
texture.GetData(destination, offsetX, offsetY, offsetZ, width, height, depth);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the contents of the specified range from the current <see cref="Texture3D{T}"/> instance and writes them into a target <see cref="Span{T}"/>.
|
||||
@@ -182,6 +186,7 @@ namespace ComputeSharp
|
||||
texture.SetData(source.AsSpan(), 0, 0, 0, texture.Width, texture.Height, texture.Depth);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture3D{T}"/> instance.
|
||||
/// </summary>
|
||||
@@ -196,6 +201,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.SetData(source.AsSpan(), x, y, z);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture3D{T}"/> instance.
|
||||
@@ -215,6 +221,7 @@ namespace ComputeSharp
|
||||
texture.SetData(source.AsSpan(), x, y, z, width, height, depth);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture3D{T}"/> instance.
|
||||
/// </summary>
|
||||
@@ -230,6 +237,7 @@ namespace ComputeSharp
|
||||
{
|
||||
texture.SetData(source.AsSpan(offset), x, y, z);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <typeparamref name="T"/> array to a specified area of the current <see cref="Texture3D{T}"/> instance.
|
||||
@@ -263,6 +271,7 @@ namespace ComputeSharp
|
||||
texture.SetData(source, 0, 0, 0, texture.Width, texture.Height, texture.Depth);
|
||||
}
|
||||
|
||||
#if NET5_0
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <see cref="ReadOnlySpan{T}"/> to a specified area of the current <see cref="Texture3D{T}"/> instance.
|
||||
/// </summary>
|
||||
@@ -281,6 +290,7 @@ namespace ComputeSharp
|
||||
|
||||
texture.SetData(source, offsetX, offsetY, offsetZ, width, height, depth);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes the contents of a given <see cref="ReadOnlySpan{T}"/> to a specified area of the current <see cref="Texture3D{T}"/> instance.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする