Run dotnet format whitespace
このコミットが含まれているのは:
1 親
228d7d8b7a
コミット
e94636b80c
896ファイル変更
+1511
-1511
検索条件に一致するファイルはありません
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
@@ -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,4 +1,4 @@
|
||||
// Copyright (c) Six Labors.
|
||||
// Copyright (c) Six Labors.
|
||||
// Licensed under the Apache License, Version 2.0.
|
||||
|
||||
using System.Numerics;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)";
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
#if WINDOWS_UWP
|
||||
using ComputeSharp.Uwp;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,4 +1,4 @@
|
||||
using System.Reflection;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)}";
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace System.Runtime.CompilerServices;
|
||||
namespace System.Runtime.CompilerServices;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates which arguments to a method involving an interpolated string handler should be passed to that handler.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace System.Runtime.CompilerServices;
|
||||
namespace System.Runtime.CompilerServices;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates the attributed type is to be used as an interpolated string handler.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
using System.ComponentModel;
|
||||
@@ -12,4 +12,4 @@ namespace System.Runtime.CompilerServices;
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
internal static class IsExternalInit
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices;
|
||||
|
||||
+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>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using ComputeSharp.Core.SourceGenerators.Models;
|
||||
using ComputeSharp.SourceGeneration.Extensions;
|
||||
@@ -145,4 +145,4 @@ public sealed class AutoConstructorGenerator : IIncrementalGenerator
|
||||
return hierarchyInfo.GetSyntax(constructorDeclaration.AddAttributeLists(attributes));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.IO;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
@@ -25,4 +25,4 @@ public sealed class GlobalUsingDirectivesGenerator : IIncrementalGenerator
|
||||
context.AddSource("GlobalUsingDirectives.g.cs", globalUsingDirectives);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using ComputeSharp.SourceGeneration.Extensions;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace ComputeSharp.Core.SourceGenerators.Models;
|
||||
namespace ComputeSharp.Core.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model describing info on a constructor parameter.
|
||||
/// </summary>
|
||||
/// <param name="Type">The fully qualified type name.</param>
|
||||
/// <param name="Name">The parameter name.</param>
|
||||
internal sealed record ParameterInfo(string Type, string Name);
|
||||
internal sealed record ParameterInfo(string Type, string Name);
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -8,4 +8,4 @@ namespace ComputeSharp;
|
||||
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
|
||||
public sealed class AutoConstructorAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace ComputeSharp;
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates the behavior of fields annotated with <see cref="AutoConstructorBehaviorAttribute"/>.
|
||||
@@ -9,4 +9,4 @@ internal enum AutoConstructorBehavior
|
||||
/// Causes <see cref="AutoConstructorAttribute"/> to ignore fields and set their values to <see langword="default"/>.
|
||||
/// </summary>
|
||||
IgnoreAndSetToDefault
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.Exceptions;
|
||||
|
||||
@@ -15,4 +15,4 @@ public sealed class InvalidExecutionContextException : InvalidOperationException
|
||||
: base($"The API {name} can only be used from within an HLSL shader.")
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
using System.Buffers;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace ComputeSharp.Core.Intrinsics.Attributes;
|
||||
@@ -28,4 +28,4 @@ internal sealed class HlslIntrinsicNameAttribute : Attribute
|
||||
/// Gets whether or not matching parameters is also required to extract the name of this intrinsic.
|
||||
/// </summary>
|
||||
public bool RequiresParametersMatching { get; init; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
using ComputeSharp.Exceptions;
|
||||
|
||||
namespace ComputeSharp;
|
||||
@@ -88,4 +88,4 @@ public static partial class Hlsl
|
||||
/// </remarks>
|
||||
[HlslIntrinsicName("lit")]
|
||||
public static float Lit(float nDotL, float nDotH, float m) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp;
|
||||
@@ -114,4 +114,4 @@ public readonly struct Bool
|
||||
/// </summary>
|
||||
/// <param name="x">The input <see cref="bool"/> value.</param>
|
||||
public static implicit operator Bool(bool x) => new(x);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -23,4 +23,4 @@ public partial struct Bool2
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="Bool2"/> instance.</param>
|
||||
public static implicit operator Bool2(bool x) => new(x, x);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -49,4 +49,4 @@ public partial struct Bool3
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="Bool3"/> instance.</param>
|
||||
public static implicit operator Bool3(bool x) => new(x, x, x);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -94,4 +94,4 @@ public partial struct Bool4
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="Bool4"/> instance.</param>
|
||||
public static implicit operator Bool4(bool x) => new(x, x, x, x);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -44,4 +44,4 @@ public partial struct Double2
|
||||
/// <param name="xy">The input <see cref="Double2"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Float2(Double2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -70,4 +70,4 @@ public partial struct Double3
|
||||
/// <param name="xyz">The input <see cref="Double3"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Float3(Double3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -115,4 +115,4 @@ public partial struct Double4
|
||||
/// <param name="xyzw">The input <see cref="Double4"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Float4(Double4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Numerics;
|
||||
using System.Numerics;
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -58,4 +58,4 @@ public partial struct Float2
|
||||
/// <param name="xy">The input <see cref="Float2"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt2(Float2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Numerics;
|
||||
using System.Numerics;
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -84,4 +84,4 @@ public partial struct Float3
|
||||
/// <param name="xyz">The input <see cref="Float3"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt3(Float3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Numerics;
|
||||
using System.Numerics;
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -129,4 +129,4 @@ public partial struct Float4
|
||||
/// <param name="xyzw">The input <see cref="Float4"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt4(Float4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -44,4 +44,4 @@ public partial struct Int2
|
||||
/// <param name="xy">The input <see cref="Int2"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double2(Int2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -70,4 +70,4 @@ public partial struct Int3
|
||||
/// <param name="xyz">The input <see cref="Int3"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double3(Int3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -115,4 +115,4 @@ public partial struct Int4
|
||||
/// <param name="xyzw">The input <see cref="Int4"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double4(Int4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace ComputeSharp;
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A type indicating a base-1 index into a matrix type. This can be used to extract references to swizzled vectors within a given matrix value.
|
||||
@@ -93,4 +93,4 @@ public enum MatrixIndex
|
||||
/// The fourth item in the fourth row.
|
||||
/// </summary>
|
||||
M44
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -44,4 +44,4 @@ public partial struct UInt2
|
||||
/// <param name="xy">The input <see cref="UInt2"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double2(UInt2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -70,4 +70,4 @@ public partial struct UInt3
|
||||
/// <param name="xyz">The input <see cref="UInt3"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double3(UInt3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS0660, CS0661
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -115,4 +115,4 @@ public partial struct UInt4
|
||||
/// <param name="xyzw">The input <see cref="UInt4"/> value to cast.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double4(UInt4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
namespace System.Diagnostics.CodeAnalysis;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ComputeSharp.D2D1.NetStandard.System.Buffers;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ComputeSharp.D2D1.NetStandard.System;
|
||||
|
||||
@@ -21,7 +21,7 @@ internal static class Math
|
||||
{
|
||||
return min;
|
||||
}
|
||||
|
||||
|
||||
if (value > max)
|
||||
{
|
||||
return max;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServices;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
@@ -101,4 +101,4 @@ partial class D2DPixelShaderSourceGenerator
|
||||
.WithBody(methodBlock);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
@@ -188,4 +188,4 @@ partial class D2DPixelShaderSourceGenerator
|
||||
return bytecode;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
@@ -119,4 +119,4 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
|
||||
context.AddSource($"{item.Hierarchy.FilenameHint}.{item.BytecodeInfo.MethodName}.g.cs", text);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -45,4 +45,4 @@ public sealed class InvalidAssemblyLevelCompileOptionsAnalyzer : DiagnosticAnaly
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -45,4 +45,4 @@ public sealed class InvalidD2DResourceTextureIndexUseAnalyzer : DiagnosticAnalyz
|
||||
}
|
||||
}, SymbolKind.Field);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace ComputeSharp.SourceGeneration.Diagnostics;
|
||||
|
||||
@@ -856,4 +856,4 @@ partial class DiagnosticDescriptors
|
||||
isEnabledByDefault: true,
|
||||
description: "A D2D1 shader must be annotated with the [D2DInputCount] attribute.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace ComputeSharp.D2D1.SourceGenerators.Diagnostics;
|
||||
|
||||
@@ -14,4 +14,4 @@ internal static class SuppressionDescriptors
|
||||
id: "CMPSD2DSPR0001",
|
||||
suppressedDiagnosticId: "CS0649",
|
||||
justification: "Fields of type D2D1ResourceTexture1D<T>, D2D1ResourceTexture2D<T> and D2D1ResourceTexture3D<T> are implicitly mapped to resource texture objects into the resulting D2D1 pixel shader for their containing type, and don't need to be initialized");
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Collections.Immutable;
|
||||
using ComputeSharp.SourceGeneration.Extensions;
|
||||
using ComputeSharp.SourceGeneration.Mappings;
|
||||
using Microsoft.CodeAnalysis;
|
||||
@@ -68,4 +68,4 @@ public sealed class D2D1ResourceTextureUninitializedFieldDiagnosticSuppressor :
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
using ComputeSharp.SourceGeneration.Helpers;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
@@ -49,4 +49,4 @@ partial class ID2D1ShaderGenerator
|
||||
LiteralExpression(SyntaxKind.StringLiteralExpression, hlslSourceLiteralExpression)))));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
@@ -389,7 +389,7 @@ partial class ID2D1ShaderGenerator
|
||||
{
|
||||
using ImmutableArrayBuilder<(string, string)> builder = ImmutableArrayBuilder<(string, string)>.Rent();
|
||||
|
||||
IReadOnlyCollection <INamedTypeSymbol> invalidTypes;
|
||||
IReadOnlyCollection<INamedTypeSymbol> invalidTypes;
|
||||
|
||||
// Process the discovered types
|
||||
foreach (var type in HlslKnownTypes.GetCustomTypes(types, out invalidTypes))
|
||||
@@ -646,4 +646,4 @@ partial class ID2D1ShaderGenerator
|
||||
return hlslBuilder.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
|
||||
@@ -35,4 +35,4 @@ partial class ID2D1ShaderGenerator
|
||||
.WithBody(Block(ReturnStatement(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(inputCount)))));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Collections.Immutable;
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
@@ -78,4 +78,4 @@ partial class ID2D1ShaderGenerator
|
||||
LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(1)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
896ファイル中100ファイルを読み込みました。 変更されたファイルが多すぎるため、それ以降のファイルは表示していません。
さらに表示
新しいイシューから参照
ユーザーをブロックする