Add .NET Framework 4.7.2 target to test projects

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-18 01:16:30 +01:00
1 親 d7a94fdf37
コミット f13253dfdb
9ファイル変更
+123 -71

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

+3 -3
ファイルの表示
@@ -205,8 +205,8 @@ public sealed partial class HlslBokehBlurProcessor
// Fill in the complex kernel values
Unsafe.Add(ref baseRef, i) = new Complex64(
MathF.Exp(-a * value) * MathF.Cos(b * value),
MathF.Exp(-a * value) * MathF.Sin(b * value));
(float)(Math.Exp(-a * value) * Math.Cos(b * value)),
(float)(Math.Exp(-a * value) * Math.Sin(b * value)));
}
return kernel;
@@ -245,7 +245,7 @@ public sealed partial class HlslBokehBlurProcessor
}
// Normalize the kernels
float scalar = 1f / MathF.Sqrt(total);
float scalar = 1f / (float)Math.Sqrt(total);
for (int i = 0; i < kernelsSpan.Length; i++)
{
+2 -2
ファイルの表示
@@ -80,13 +80,13 @@ public sealed partial class HlslGaussianBlurProcessor
private static float Gaussian(float x, float sigma)
{
const float Numerator = 1.0f;
float denominator = MathF.Sqrt(2 * MathF.PI) * sigma;
float denominator = (float)(Math.Sqrt(2 * Math.PI) * sigma);
float exponentNumerator = -x * x;
float exponentDenominator = 2 * sigma * sigma;
float left = Numerator / denominator;
float right = MathF.Exp(exponentNumerator / exponentDenominator);
float right = (float)Math.Exp(exponentNumerator / exponentDenominator);
return left * right;
}