Remove remaining downlevel conditional paths
このコミットが含まれているのは:
1 親
813f5a18f1
コミット
40f5c7467a
4ファイル変更
-40
検索条件に一致するファイルはありません
@@ -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)]
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
新しいイシューから参照
ユーザーをブロックする