コミットグラフ
4142 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri dedfbd8728 Use primary constructor in ShaderSourceRewriter 2023-12-06 21:12:42 +01:00
Sergio Pedri 74820e1b57 Remove unnecessary ShaderSourceRewriter constructor
Also fix the nullability of the shaderType field
2023-12-06 21:12:42 +01:00
Sergio Pedri eefd0de9f0 Add mapping of static fields to HLSL rewriters 2023-12-06 21:12:42 +01:00
Sergio Pedri 4f60d70411 Use shared static field rewriter in DX12/D2D generators 2023-12-06 21:12:42 +01:00
Sergio Pedri c0e78bb1a2 Add HlslDefinitionsSyntaxProcessor.TryGetStaticField 2023-12-06 21:12:42 +01:00
Sergio Pedri 361b0b496b Merge pull request #705 from Sergio0694/dev/disallow-this
Add diagnostics for invalid 'this' expressions
2023-12-06 20:49:47 +01:00
Sergio Pedri 48fbe67162 Add diagnostics unit tests for invalid 'this' expressions 2023-12-06 20:22:35 +01:00
Sergio Pedri b49e3365a4 Add diagnostic for invalid 'this' expressions 2023-12-06 20:22:19 +01:00
Sergio Pedri b19ca68920 Merge pull request #704 from Sergio0694/dev/tweak-group-shared-analyzer
Remove unnecessary symbol in [GroupShared] analyzer
2023-12-06 12:39:24 +01:00
Sergio Pedri 50d6f211d3 Remove unnecessary symbol in [GroupShared] analyzer 2023-12-06 03:04:28 +01:00
Sergio Pedri 2a2b5b08c5 Merge pull request #702 from Sergio0694/dev/keep-instance-identifiers
Keep original identifiers for instance methods
2023-12-04 22:42:58 +01:00
Sergio Pedri 3d1a131d23 Apply IDE0001 code fixers (simplify names) 2023-12-04 20:42:31 +01:00
Sergio Pedri 016d51e161 Avoid rewriting identifiers for instance methods 2023-12-04 20:41:37 +01:00
Sergio Pedri ea9cc0809a Merge pull request #701 from Sergio0694/dev/hlsl-rewriter-cancellation
Check for cancellation during HLSL rewriting
2023-12-04 12:07:29 +01:00
Sergio Pedri c0f83657b3 Check for cancellation during HLSL rewriting 2023-12-03 14:11:21 +01:00
Sergio Pedri 38ce32e99a Merge pull request #700 from Sergio0694/dev/immutable-builder-enumerate
Add and leverage ImmutableArrayBuilder<T>.AsEnumerable()
2023-12-03 14:11:09 +01:00
Sergio Pedri 5881b94dad Optimize rewriting HLSL indexer access syntax 2023-12-03 13:06:10 +01:00
Sergio Pedri f4d667a7a2 Add ImmutableArrayBuilder<T>.AsEnumerable() API 2023-12-03 13:05:44 +01:00
Sergio Pedri 4cd9cb6480 Merge pull request #699 from Sergio0694/dev/constructors-support
Add support for constructors in DX12 and D2D1 shaders
2023-12-03 13:04:02 +01:00
Sergio Pedri 7cfaf16ef8 Improve primary constructors error state, add test 2023-12-03 12:33:52 +01:00
Sergio Pedri 7e7b57cd67 Add a diagnostic for constructors with base constructors 2023-12-02 23:25:23 +01:00
Sergio Pedri 4ec30767ce Add D2D1 shader to test custom constructors 2023-12-02 23:25:23 +01:00
Sergio Pedri 2266fe8afd Zero-initialize constructor target instance in HLSL 2023-12-02 22:20:11 +01:00
Sergio Pedri f608289763 Add unit tests for value type constructors support 2023-12-02 20:42:42 +01:00
Sergio Pedri 7a1aed7890 Plug constructors support into D2D generator too 2023-12-02 19:46:55 +01:00
Sergio Pedri 1660c8ca1b Optimize HlslDefinitionsSyntaxProcessor.GetDeclaredTypes 2023-12-02 19:43:40 +01:00
Sergio Pedri b685f09d06 Enable constructors support in DX12 shaders 2023-12-02 19:13:26 +01:00
Sergio Pedri f6a39ef48a Merge pull request #698 from Sergio0694/dev/generator-tweaks2
More source generator tweaks
2023-12-01 00:44:49 +01:00
Sergio Pedri c827b92ea2 Remove two unnecessary NormalizeWhitespace calls 2023-11-30 23:14:58 +01:00
Sergio Pedri dd0c3c4882 Seal all overrides in HlslSourceRewriter 2023-11-30 23:09:44 +01:00
Sergio Pedri 605ccd008c Merge pull request #697 from Sergio0694/dev/msbuild-tweaks
Use IsTargetFrameworkCompatible instead of StartsWith
2023-11-30 22:11:48 +01:00
Sergio Pedri 51fd22246b Use IsTargetFrameworkCompatible instead of StartsWith 2023-11-30 21:45:36 +01:00
Sergio Pedri d80d3710da Merge pull request #696 from Sergio0694/dev/get-syntax-token
Flow cancellation token to SyntaxReference.GetSyntax() calls
2023-11-30 21:02:19 +01:00
Sergio Pedri c9272392d1 Pass cancellation token to SyntaxReferece.GetSyntax() 2023-11-30 20:42:06 +01:00
Sergio Pedri c540ffa61d Add ISymbol.TryGetSyntaxNode<T> extension 2023-11-30 20:41:52 +01:00
Sergio Pedri 0a82cd194e Rename an int variable to HRESULT 2023-11-30 00:49:56 +01:00
Sergio Pedri 30f1f4cbb4 Merge pull request #695 from Sergio0694/dev/generator-cancellation
Check for cancellation while doing HLSL rewriting
2023-11-30 00:37:35 +01:00
Sergio Pedri 8536bcb16a Remove IComputeShader file links from DX12 generator 2023-11-30 00:19:20 +01:00
Sergio Pedri c5a79fd1e1 Port cancellation token checks to D2D1 generator 2023-11-30 00:17:59 +01:00
Sergio Pedri 1c0281ae45 Check cancellation token when rewriting DX12 HLSL 2023-11-30 00:17:45 +01:00
Sergio Pedri a6179901b7 Merge pull request #694 from Sergio0694/dev/multiple-shader-analyzer
Move MultipleShaderTypesImplemented diagnostic to analyzer
2023-11-29 23:35:59 +01:00
Sergio Pedri 86bc68e4dd Move MultipleShaderTypesImplemented to analyzer 2023-11-29 23:17:33 +01:00
Sergio Pedri 7a630204ef Add MultipleComputeShaderInterfacesOnShaderTypeAnalyzer 2023-11-29 23:15:26 +01:00
Sergio Pedri a0c4f53326 Merge pull request #693 from Sergio0694/user/sergiopedri/partial-shader-declarations
Handle partial members in shader types
2023-11-29 23:14:53 +01:00
Sergio Pedri 6e46f14ab3 Port handling of partials to D2D1 generator too 2023-11-29 22:24:48 +01:00
Sergio Pedri 512efa074b Add unit tests for shader with partial declarations 2023-11-29 22:19:34 +01:00
Sergio Pedri 7331b30bc5 Handle partials by gathering symbols for fields, methods 2023-11-29 22:19:23 +01:00
Sergio Pedri 87de35fc78 Merge pull request #691 from Sergio0694/dev/invalid-syntax-diagnostics
Correctly handle and error on initializer expressions and collection expressions
2023-11-29 00:55:11 +01:00
Sergio Pedri 3810262548 Fix incorrect diagnostic messages in D2D generator 2023-11-29 00:26:02 +01:00
Sergio Pedri b266308c8b Emit a diagnostic for collection expressions 2023-11-29 00:23:37 +01:00