Removed leftover legacy paths
このコミットが含まれているのは:
1 親
0086e44a8c
コミット
2ab3e9d0e0
4ファイル変更
+1
-39
検索条件に一致するファイルはありません
@@ -54,16 +54,10 @@ namespace ComputeSharp.Shaders.Translation.Models
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET5_0
|
||||
ref ulong r0 = ref MemoryMarshal.GetArrayDataReference(this.resourcesArray);
|
||||
ref D3D12_GPU_DESCRIPTOR_HANDLE r1 = ref Unsafe.As<ulong, D3D12_GPU_DESCRIPTOR_HANDLE>(ref r0);
|
||||
|
||||
return MemoryMarshal.CreateReadOnlySpan(ref r1, this.resourcesCount);
|
||||
#else
|
||||
Span<ulong> span = this.resourcesArray.AsSpan(0, this.resourcesCount);
|
||||
|
||||
return MemoryMarshal.Cast<ulong, D3D12_GPU_DESCRIPTOR_HANDLE>(span);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,17 +69,11 @@ namespace ComputeSharp.Shaders.Translation.Models
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET5_0
|
||||
ref byte r0 = ref MemoryMarshal.GetArrayDataReference(this.variablesArray);
|
||||
ref uint r1 = ref Unsafe.As<byte, uint>(ref r0);
|
||||
int length = (int)((uint)this.variablesByteSize / sizeof(uint));
|
||||
|
||||
return MemoryMarshal.CreateReadOnlySpan(ref r1, length);
|
||||
#else
|
||||
Span<byte> span = this.variablesArray.AsSpan(0, this.variablesByteSize);
|
||||
|
||||
return MemoryMarshal.Cast<byte, uint>(span);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
#if NET5_0
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using FX = TerraFX.Interop.Windows;
|
||||
#endif
|
||||
|
||||
namespace ComputeSharp.Shaders.Translation
|
||||
{
|
||||
@@ -15,7 +13,6 @@ namespace ComputeSharp.Shaders.Translation
|
||||
/// </summary>
|
||||
private static void InitializeDxcLibrariesLoading()
|
||||
{
|
||||
#if NET5_0
|
||||
// Test whether the native libraries are present in the same folder of the executable
|
||||
// (which is the case when the program was built with a runtime identifier), or whether
|
||||
// they are in the "runtimes\win-x64\native" folder in the executable directory.
|
||||
@@ -60,7 +57,6 @@ namespace ComputeSharp.Shaders.Translation
|
||||
|
||||
return IntPtr.Zero;
|
||||
};
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,6 @@ 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>
|
||||
@@ -69,7 +68,6 @@ 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.
|
||||
@@ -100,7 +98,6 @@ 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>
|
||||
@@ -115,7 +112,6 @@ 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.
|
||||
@@ -147,7 +143,6 @@ 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>
|
||||
@@ -164,7 +159,6 @@ 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}"/>.
|
||||
@@ -209,7 +203,6 @@ 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>
|
||||
@@ -223,7 +216,6 @@ 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.
|
||||
@@ -241,7 +233,6 @@ 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>
|
||||
@@ -256,7 +247,6 @@ 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.
|
||||
@@ -288,7 +278,6 @@ 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>
|
||||
@@ -305,7 +294,6 @@ 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,7 +66,6 @@ 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>
|
||||
@@ -82,7 +81,6 @@ 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.
|
||||
@@ -115,7 +113,6 @@ 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>
|
||||
@@ -134,7 +131,6 @@ 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}"/>.
|
||||
@@ -186,7 +182,6 @@ 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>
|
||||
@@ -201,7 +196,6 @@ 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.
|
||||
@@ -221,7 +215,6 @@ 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>
|
||||
@@ -237,7 +230,6 @@ 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.
|
||||
@@ -271,7 +263,6 @@ 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>
|
||||
@@ -290,7 +281,6 @@ 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.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする