Run dotnet format whitespace

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 228d7d8b7a
コミット e94636b80c
896ファイル変更
+1511 -1511

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

+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Buffers;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
@@ -160,4 +160,4 @@ public class BlasBenchmark : IDisposable
y.CopyTo(this.y);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Runtime.CompilerServices;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace ComputeSharp.Benchmark.Blas;
@@ -105,4 +105,4 @@ internal static partial class BlasHelpers
y[ThreadIds.X * n * p + ThreadIds.Y * p + ThreadIds.Z] = result + b[ThreadIds.Z];
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
@@ -118,4 +118,4 @@ public partial class DispatchingBenchmark : IDisposable
{
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Reflection;
using BenchmarkDotNet.Attributes;
@@ -91,4 +91,4 @@ public class ImagingBenchmark : IDisposable
{
this.image!.Mutate(c => c.ApplyProcessor(new HlslGaussianBlurProcessor(80)));
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using BenchmarkDotNet.Running;
// =================
@@ -8,4 +8,4 @@ using BenchmarkDotNet.Running;
// it as the startup project for the solution and run it without the debugger
// (CTRL + F5), or compile it and then go to its bin\Release\net6.0 folder,
// open a cmd prompt and run "dotnet ComputeSharp.Benchmark.dll".
BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args);
BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args);
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Runtime.CompilerServices;
@@ -42,4 +42,4 @@ internal readonly struct Complex64
/// <returns>The <see cref="Complex64"/> result.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Complex64 operator *(Complex64 value, float scalar) => new Complex64(value.Real * scalar, value.Imaginary * scalar);
}
}
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Runtime.CompilerServices;
using System.Runtime.CompilerServices;
using CommunityToolkit.Diagnostics;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
@@ -81,4 +81,4 @@ public sealed partial class HlslBokehBlurProcessor : IImageProcessor
return Unsafe.As<IImageProcessor<TPixel>>(processor);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Numerics;
@@ -435,4 +435,4 @@ public sealed partial class HlslBokehBlurProcessor
}
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Runtime.CompilerServices;
using System.Runtime.CompilerServices;
using CommunityToolkit.Diagnostics;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
@@ -85,4 +85,4 @@ public sealed partial class HlslGaussianBlurProcessor : IImageProcessor
return Unsafe.As<IImageProcessor<TPixel>>(processor);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using CommunityToolkit.Diagnostics;
@@ -178,4 +178,4 @@ public sealed partial class HlslGaussianBlurProcessor
}
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Reflection;
using ComputeSharp.BokehBlur.Processors;
@@ -37,4 +37,4 @@ foreach (var effect in new (string Name, IImageProcessor Processor)[]
targetPath = Path.Combine(targetPath, $"{Path.GetFileNameWithoutExtension(path)}_{effect.Name}{Path.GetExtension(path)}");
copy.Save(targetPath);
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.Sample.FSharp.Shaders;
namespace ComputeSharp.Sample.FSharp.Shaders;
/// <summary>
/// A sample shader thaat just multiplies items in a buffer by two.
@@ -13,4 +13,4 @@ public readonly partial struct MultiplyByTwo : IComputeShader
{
buffer[ThreadIds.X] *= 2;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Globalization;
using System.Linq;
using CommunityToolkit.Diagnostics;
@@ -42,4 +42,4 @@ internal static class Formatting
Console.WriteLine(new string('=', 50));
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using ComputeSharp;
using ComputeSharp.Sample;
@@ -33,4 +33,4 @@ internal readonly partial struct MultiplyByTwo : IComputeShader
{
buffer[ThreadIds.X] *= 2;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Core.Constants;
namespace ComputeSharp.SwapChain.Core.Constants;
/// <summary>
/// A <see langword="class"/> with the collection of tracked errors for analytics.
@@ -7,4 +7,4 @@ public static class Error
{
public const string RenderingFailedOnMainPanel = "[SHELL] RenderingFailed (main panel)";
public const string RenderingFailedOnSelectionPanel = "[SHELL] RenderingFailed (selection panel)";
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Core.Constants;
namespace ComputeSharp.SwapChain.Core.Constants;
/// <summary>
/// A <see langword="class"/> with the collection of tracked events for analytics.
@@ -12,4 +12,4 @@ public static class Event
public const string IsRenderingPausedChanged = "[SETTINGS] IsRenderingPaused";
public const string OpenShaderSelectionPanel = "[SHELL] Open ShaderSelectionPanel";
public const string CloseShaderSelectionPanel = "[SHELL] Close ShaderSelectionPanel";
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
#if WINDOWS_UWP
#if WINDOWS_UWP
using Windows.UI.Xaml.Controls;
#else
using Microsoft.UI.Xaml.Controls;
@@ -20,4 +20,4 @@ public static class RenderingPauseConverter
{
return value ? Symbol.Play : Symbol.Pause;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Core.Converters;
namespace ComputeSharp.SwapChain.Core.Converters;
/// <summary>
/// A class with some static converters for resolution scale settings.
@@ -24,4 +24,4 @@ public static class ResolutionScaleConverter
{
return value / 100.0;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.Text;
@@ -48,4 +48,4 @@ public sealed class DebugAnalyticsService : IAnalyticsService
Trace.Write(builder);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
#nullable enable
@@ -22,4 +22,4 @@ public interface IAnalyticsService
/// <param name="exception">The exception that has been thrown.</param>
/// <param name="data">The optional event properties.</param>
void Log(Exception exception, params (string Property, object? Value)[]? data);
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using ComputeSharp.SwapChain.Shaders;
#if WINDOWS_UWP
@@ -39,4 +39,4 @@ public sealed class ContouredLayersRunner : IShaderRunner
return true;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using CommunityToolkit.Diagnostics;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
@@ -170,4 +170,4 @@ public sealed partial class MainViewModel : ObservableObject
{
IsRenderingPaused = !IsRenderingPaused;
}
}
}
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using CommunityToolkit.Mvvm.ComponentModel;
#if WINDOWS_UWP
using ComputeSharp.Uwp;
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A shader creating an abstract and colorful animation.
@@ -68,4 +68,4 @@ internal readonly partial struct ColorfulInfinity : IPixelShader<float4>
return new(col.X, col.Y, col.Z, 1.0f);
}
}
}
+4 -4
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// Constructing some concise contoured layers, then applying various edge and shading effects to produce some faux depth.
@@ -68,7 +68,7 @@ internal readonly partial struct ContouredLayers : IPixelShader<float4>
private float Noise2D3G(float2 p)
{
float2 i = Hlsl.Floor(p);
p -= i;
float4 v = default;
@@ -112,7 +112,7 @@ internal readonly partial struct ContouredLayers : IPixelShader<float4>
private float3 GetColor(float2 p, float sh, float fi)
{
float3 tx = texture.Sample(p + Hash21(new float2(sh, fi))).XYZ;
tx *= tx;
float3 col;
@@ -196,4 +196,4 @@ internal readonly partial struct ContouredLayers : IPixelShader<float4>
return new float4(Hlsl.Sqrt(Hlsl.Max(col, 0.0f)), 1);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A basic extruded square grid-based blobby Truchet pattern.
@@ -295,4 +295,4 @@ internal readonly partial struct ExtrudedTruchetPattern : IPixelShader<float4>
return c;
}
}
}
+4 -4
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A shader which interpolates four different colors into a rotating gradient pattern.
@@ -65,8 +65,8 @@ internal readonly partial struct FourColorGradient : IPixelShader<float4>
u.X),
Hlsl.Lerp(
Hlsl.Dot(-1.0f + 2.0f * Hash(i + new float2(0.0f, 1.0f)), f - new float2(0.0f, 1.0f)),
Hlsl.Dot(-1.0f + 2.0f * Hash(i + new float2(1.0f, 1.0f)), f - new float2(1.0f, 1.0f)),
u.X),
Hlsl.Dot(-1.0f + 2.0f * Hash(i + new float2(1.0f, 1.0f)), f - new float2(1.0f, 1.0f)),
u.X),
u.Y);
return 0.5f + 0.5f * n;
@@ -105,4 +105,4 @@ internal readonly partial struct FourColorGradient : IPixelShader<float4>
return new(col, 1.0f);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A shader creating a fractal tiling animation.
@@ -45,4 +45,4 @@ internal readonly partial struct FractalTiling : IPixelShader<float4>
return color;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A simple shader to get started with based on shadertoy new shader template.
@@ -27,4 +27,4 @@ internal readonly partial struct HelloWorld : IPixelShader<float4>
// Output to screen
return new(col, 1f);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A shader creating a flythrough in a Menger system.
@@ -169,4 +169,4 @@ internal readonly partial struct MengerJourney : IPixelShader<float4>
return RayMarch(camPos, rayDir, ThreadIds.XY);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A shader creating an octagram animation, inspired by arabesque.
@@ -123,4 +123,4 @@ internal readonly partial struct Octagrams : IPixelShader<float4>
return color;
}
}
}
+3 -3
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// Fully procedural 3D animated volume with three evaluations per step (for shading).
@@ -23,7 +23,7 @@ internal readonly partial struct ProteanClouds : IPixelShader<float4>
{
float c = Hlsl.Cos(a);
float s = Hlsl.Sin(a);
return new(c, s, -s, c);
}
@@ -168,4 +168,4 @@ internal readonly partial struct ProteanClouds : IPixelShader<float4>
return new(col, 1.0f);
}
}
}
+3 -3
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// An offset grid of square-based pyramids whose tips have been offset according to an underlying directional noise field.
@@ -44,7 +44,7 @@ internal readonly partial struct PyramidPattern : IPixelShader<float4>
private static float N2D3G(float2 p)
{
float2 i = Hlsl.Floor(p);
p -= i;
float4 v = default;
@@ -175,4 +175,4 @@ internal readonly partial struct PyramidPattern : IPixelShader<float4>
return new(Hlsl.Sqrt(Hlsl.Max(col, 0.0f)), 1);
}
}
}
+5 -5
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// Utilizing a 2D simplex grid to construct the isolines of a noise function.
@@ -45,7 +45,7 @@ internal readonly partial struct TriangleGridContouring : IPixelShader<float4>
private float N2D3G(float2 p)
{
float2 i = Hlsl.Floor(p);
p -= i;
float4 v = default;
@@ -130,7 +130,7 @@ internal readonly partial struct TriangleGridContouring : IPixelShader<float4>
if (iTh >= 4 && iTh <= 6)
{
float2 tmp = p0;
p0 = p1;
p1 = tmp;
}
@@ -138,7 +138,7 @@ internal readonly partial struct TriangleGridContouring : IPixelShader<float4>
if (i == 0.0f)
{
float2 tmp = p0;
p0 = p1;
p1 = tmp;
}
@@ -277,4 +277,4 @@ internal readonly partial struct TriangleGridContouring : IPixelShader<float4>
return new(Hlsl.Sqrt(Hlsl.Max(col, 0.0f)), 1);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A shader creating an animated two-tiles Truchet arrangement.
@@ -143,4 +143,4 @@ internal readonly partial struct TwoTiledTruchet : IPixelShader<float4>
return color;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
#if !DEBUG
#if !DEBUG
using System;
using System.Diagnostics;
using System.Reflection;
@@ -112,4 +112,4 @@ sealed partial class App : Application
coreTitleBar.ExtendViewIntoTitleBar = true;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Reflection;
using CommunityToolkit.Diagnostics;
@@ -41,4 +41,4 @@ public static class AssemblyExtensions
return false;
}
}
}
}
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
namespace System.Runtime.CompilerServices;
namespace System.Runtime.CompilerServices;
/// <summary>
/// Used to indicate to the compiler that the <c>.locals init</c> flag should not be set in method headers.
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using ComputeSharp.SwapChain.Core.Services;
@@ -58,4 +58,4 @@ public sealed class AppCenterService : IAnalyticsService
: $"|{text.Substring(text.Length - PropertyStringMaxLength)}";
});
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using CommunityToolkit.Mvvm.DependencyInjection;
using ComputeSharp.SwapChain.Core.Constants;
using ComputeSharp.SwapChain.Core.Services;
@@ -64,4 +64,4 @@ public sealed partial class MainView : UserControl
RenderingErrorInfoBar.IsOpen = true;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading;
using ComputeSharp.SwapChain.WinUI.Views;
using Microsoft.UI.Xaml;
@@ -51,4 +51,4 @@ public sealed partial class App : Application
this.mainWindow.Activate();
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.CompilerServices;
using ComputeSharp.SwapChain.Core.Services;
using ComputeSharp.SwapChain.Core.ViewModels;
@@ -70,4 +70,4 @@ public sealed partial class MainWindow : Window
{
this.shaderPanels.AddOrUpdate((AnimatedComputeShaderPanel)sender, null);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using ComputeSharp.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
@@ -299,4 +299,4 @@ internal sealed class SwapChainApplication<T> : Win32Application
this.nextD3D12FenceValue++;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using TerraFX.Interop.Windows;
namespace ComputeSharp.SwapChain.Backend;
@@ -24,4 +24,4 @@ internal abstract class Win32Application
/// </summary>
/// <param name="time">The current time since the start of the application.</param>
public abstract void OnUpdate(TimeSpan time);
}
}
+6 -6
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
@@ -252,10 +252,10 @@ internal unsafe static class Win32ApplicationRunner
_ = Windows.GetCursorPos(&point);
_ = Windows.GetWindowRect(hwnd, &rect);
bool isAtTop = Math.Abs(point.y - rect.top) < 12;
bool isAtRight = Math.Abs(point.x - rect.right) < 12;
bool isAtBottom = Math.Abs(point.y - rect.bottom) < 12;
bool isAtLeft = Math.Abs(point.x - rect.left) < 12;
bool isAtTop = Math.Abs(point.y - rect.top) < 12;
bool isAtRight = Math.Abs(point.x - rect.right) < 12;
bool isAtBottom = Math.Abs(point.y - rect.bottom) < 12;
bool isAtLeft = Math.Abs(point.x - rect.left) < 12;
if (isAtTop)
{
@@ -312,4 +312,4 @@ internal unsafe static class Win32ApplicationRunner
return Windows.DefWindowProcW(hwnd, uMsg, wParam, lParam);
}
}
}
+3 -3
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Runtime.CompilerServices;
using ComputeSharp.SwapChain.Backend;
@@ -48,7 +48,7 @@ class Program
}
Console.WriteLine($"{Samples.Length}+: Exit (Use Escape, 'Q', or Alt + F4 to exit a sample once chosen)");
Console.WriteLine();
Console.WriteLine();
do
{
@@ -78,4 +78,4 @@ class Program
return GraphicsDevice.GetDefault().LoadReadOnlyTexture2D<Rgba32, float4>(filename);
}
}
}