Remove remaining downlevel conditional paths

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-18 13:24:55 +02:00
1 親 813f5a18f1
コミット 40f5c7467a
4ファイル変更
-40

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

-7
ファイルの表示
@@ -2,13 +2,6 @@ using System;
namespace ComputeSharp.D2D1.Tests.Effects;
#if !NET6_0_OR_GREATER
internal static class MathF
{
public const float PI = (float)Math.PI;
}
#endif
[D2DInputCount(0)]
[D2DRequiresScenePosition]
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
-4
ファイルの表示
@@ -1,13 +1,9 @@
using System.Diagnostics;
using System.Linq;
#if NET6_0_OR_GREATER
using System.Runtime.Versioning;
#endif
using ComputeSharp;
#if NET6_0_OR_GREATER
[assembly: SupportedOSPlatform("windows6.2")]
#endif
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
-4
ファイルの表示
@@ -1,13 +1,9 @@
using System.Diagnostics;
using System.Linq;
#if NET6_0_OR_GREATER
using System.Runtime.Versioning;
#endif
using ComputeSharp;
#if NET6_0_OR_GREATER
[assembly: SupportedOSPlatform("windows6.2")]
#endif
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
-25
ファイルの表示
@@ -1,25 +0,0 @@
#if !NET6_0_OR_GREATER
namespace System;
/// <summary>
/// A type with some helper methods for the <see cref="Random"/> class.
/// </summary>
internal static class RandomExtensions
{
/// <summary>
/// Fills the elements of a specified span of bytes with random numbers.
/// </summary>
/// <param name="random">The target random instance.</param>
/// <param name="buffer">The array to be filled with random numbers.</param>
public static void NextBytes(this Random random, Span<byte> buffer)
{
byte[] array = new byte[buffer.Length];
random.NextBytes(array);
array.AsSpan().CopyTo(buffer);
}
}
#endif