Sergio Pedri
d910922ef5
Use blocks for all if statements
2022-10-15 09:10:18 -07:00
Sergio Pedri
7a7f6be038
Reorder type modifiers
2022-10-15 09:10:18 -07:00
Sergio Pedri
ce1097e7d9
Add parentheses for clarity where needed (IDE0048)
2022-10-15 09:10:18 -07:00
Sergio Pedri
553c7a4014
Add necessary parentheses and use target-typed new() expressions
2022-10-15 09:10:18 -07:00
Sergio Pedri
b2afb88f30
Switch methods to block bodies
2022-10-15 09:10:18 -07:00
Sergio Pedri
16c0fc9aab
Use explicit types everywhere
2022-10-15 09:10:18 -07:00
Sergio Pedri
27c629f3b4
Small manual code style tweaks and warning suppressions
2022-10-15 09:10:18 -07:00
Sergio Pedri
9343ac7f7b
Add explicit discards to all value returning expressions
2022-10-15 09:10:18 -07:00
Sergio Pedri
38adbe6087
Format ComputeSharp.Core project
2022-10-15 09:10:18 -07:00
Sergio Pedri
1c26d37bc3
Fix nested .editorconfig files and unit test IDE warnings
2022-10-15 09:10:18 -07:00
Sergio Pedri
746f132182
Adjust field visibility, fix naming violations in non test projects
2022-10-15 09:10:18 -07:00
Sergio Pedri
f73915bf93
Update .editorconfig field naming rules
2022-10-15 09:10:18 -07:00
Sergio Pedri
c325f7415c
Exclude TerraFX.Interop.Windows polyfills from .editorconfig
2022-10-15 09:10:18 -07:00
Sergio Pedri
0ca87f1506
Fix line ending in .editorconfig
2022-10-15 09:10:18 -07:00
Sergio Pedri
32c64be4ed
Port .gitattributes file from .NET Community Toolkit
2022-10-15 09:10:18 -07:00
Sergio Pedri
e94636b80c
Run dotnet format whitespace
2022-10-15 09:10:18 -07:00
Sergio Pedri
228d7d8b7a
Improve new line .editorconfig options
2022-10-15 09:10:18 -07:00
Sergio Pedri
bc384d6aee
Add .editorconfig file to solution explorer
2022-10-15 09:10:18 -07:00
Sergio Pedri
ac7010a730
Fix build errors due to .editorconfig warnings
2022-10-15 09:10:18 -07:00
Sergio Pedri
f6160a2062
Remove unnecessary configurations in UWP sample .csproj
2022-10-15 09:10:18 -07:00
Nirmal Guru
dfbed35179
Fix Code Style issues on Build
...
There are 3 issues at play here:
1. XAML files placed inside C# files, leading to dotnet rules not applying to C# files.
2. Code style analyzer not matching the compiler's version.
3. Unrelated but warning for missing Appx bundling platforms appears for a sample UWP project.
This patch fixes all of that.
2022-10-15 09:10:18 -07:00
Sergio Pedri
5a942b208b
Add .editorconfig file
2022-10-15 09:10:18 -07:00
Sergio Pedri
df21131f73
Merge pull request #407 from Sergio0694/dev/fix-github-packages
...
Fix code GitHub Packages publishing
2022-10-15 05:00:50 -07:00
Sergio Pedri
3ba8f504dd
Fix code owner for GitHub pPackages publishing
2022-10-15 12:59:38 +02:00
Sergio Pedri
3a007e50e1
Merge pull request #406 from Sergio0694/dev/update-github-actions
...
Update GitHub Actions
2022-10-14 13:19:47 -07:00
Sergio Pedri
709c523c71
Update GitHub Actions
...
* actions/checkout@v2 ->actions/checkout@v3
* microsoft/[email protected] -> microsoft/[email protected]
* actions/setup-dotnet@v1 -> actions/setup-dotnet@v3
* actions/download-artifact@v2 -> actions/download-artifact@v3
* actions/upload-artifact@v2 -> actions/upload-artifact@v3
2022-10-14 20:57:21 +02:00
Sergio Pedri
459427ea28
Merge pull request #405 from Sergio0694/dev/disable-nuget-ci
...
Disable NuGet packages in CI script
2022-10-13 12:29:27 -07:00
Sergio Pedri
39a2b3e80f
Disable NuGet packages in CI script
2022-10-13 20:51:50 +02:00
Sergio Pedri
6131b7f9b0
Fix C# 11 check in D2D1 source generator
...
Used the wrong local in dab94bdae7
2022-10-11 19:01:28 +02:00
Sergio Pedri
59378e4cf9
Update .targets with clearer error message for Roslyn 4.4
2022-10-09 17:49:44 +02:00
Sergio Pedri
37ebca1e8e
Merge pull request #400 from Sergio0694/dev/raw-multiline-toggle
...
Only emit raw multiline string literals when possible
2022-10-08 07:05:41 -07:00
Sergio Pedri
dab94bdae7
Only emit raw multiline string literals when possible
2022-10-08 15:05:52 +02:00
Sergio Pedri
5c83ac3c58
Merge pull request #399 from Sergio0694/dev/missing-d2d-count-diagnostic
...
Add diagnostic for missing [D2DInputCount] attribute
2022-10-07 16:45:55 -07:00
Sergio Pedri
3fb94daaa2
Add diagnostic for missing [D2DInputCount] attribute
2022-10-07 16:12:31 -07:00
Sergio Pedri
ee936f8fbe
Merge pull request #398 from Sergio0694/dev/update-pix
...
Update PIX libraries to winpixeventruntime.1.0.220810001
2022-10-07 16:11:54 -07:00
Sergio Pedri
d17b16d158
Update PIX libraries to winpixeventruntime.1.0.220810001
2022-10-07 15:39:28 -07:00
Sergio Pedri
270138b1d2
Merge pull request #397 from Sergio0694/dev/skip-locals-init
...
Enable [SkipLocalsInit] for all libraries
2022-10-07 15:39:16 -07:00
Sergio Pedri
0ab1d3db30
Centralize [SupportedOSPlatform] settings in .targets file
2022-10-08 00:04:23 +02:00
Sergio Pedri
783e81d0ff
Centralize trimming settings in .targets file
2022-10-08 00:04:23 +02:00
Sergio Pedri
e4f2aba9c8
Move InternalsVisibleTo to .csproj files
2022-10-08 00:04:23 +02:00
Sergio Pedri
631618d311
Add missing initial clear of stackalloc'd buffers
2022-10-08 00:04:23 +02:00
Sergio Pedri
69515867e6
Move [SkipLocalsInit] logic to .targets file
2022-10-08 00:04:23 +02:00
Sergio Pedri
983e874f4d
Add [SkipLocalsInit] to all projects
2022-10-07 22:42:25 +02:00
Sergio Pedri
bccabdd393
Merge pull request #396 from Sergio0694/dev/d3d12ma-201
...
Bump D3D12MA to 2.0.1, add [SupportedOSPlatform]
2022-10-07 13:41:52 -07:00
Sergio Pedri
a9b1afe9de
Add [SupportedOSPlatform] to all assemblies
2022-10-07 21:01:59 +02:00
Sergio Pedri
af71ac1902
Bump D3D12MA to 2.0.1
2022-10-07 19:01:42 +02:00
Sergio Pedri
8efce90de8
Fix typo in D2D1ResourceTextureManager XML docs
2022-10-07 18:46:05 +02:00
Sergio Pedri
417daf3734
Merge pull request #394 from Sergio0694/dev/generator-optimizations
...
Source generator optimizations
2022-10-07 09:44:15 -07:00
Sergio Pedri
883d99ca9f
Use pooled array builders in all generators
2022-10-07 09:14:17 -07:00
Sergio Pedri
d4b1e71c39
Remove allocations when validating D2D1 input indices
2022-10-07 09:14:17 -07:00