コミットグラフ
46 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri 29fee3b59d Wire up support for known named intrinsics 2023-12-27 18:21:36 +01:00
Sergio Pedri f1e0560053 Support 'this.' expressions in shader custom types 2023-12-21 19:26:26 +01:00
Sergio Pedri 4b6edfd070 Handle recursive members when rewriting HLSL 2023-12-14 16:08:09 +01:00
Sergio Pedri b1094ba061 Fix invalid arguments passed to HLSL rewriters 2023-12-14 15:56:08 +01:00
Sergio Pedri 0d667a5da0 Use type aliases in DX12/D2D generators to write HLSL 2023-12-12 23:22:37 +01:00
Sergio Pedri 2b1b864c8d Add dedicated diagnostic for Math/MathF calls 2023-12-09 18:38:20 +01:00
Sergio Pedri 9bba3e58f6 Centralize leftover TrackType method, simplify code 2023-12-08 13:20:48 +01:00
Sergio Pedri e39fa4feaf Flow cancellation token to GetOperation calls 2023-12-06 22:31:47 +01:00
Sergio Pedri 031f2f7948 Flow cancellation token to GetTypeInfo calls 2023-12-06 22:28:16 +01:00
Sergio Pedri bf11fc7620 Move HLSL tracking extensions to HlslSourceRewriter 2023-12-06 22:27:14 +01:00
Sergio Pedri b832874e55 Track [D2DRequiresScenePosition] from external static fields 2023-12-06 21:12:42 +01:00
Sergio Pedri 5973921567 Handle identifier names for all static shader fields 2023-12-06 21:12:42 +01:00
Sergio Pedri c0f1ad6a1e Handle member accesses for static shader fields 2023-12-06 21:12:42 +01:00
Sergio Pedri 1372d14a90 Enable tracking external static fields 2023-12-06 21:12:42 +01:00
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 016d51e161 Avoid rewriting identifiers for instance methods 2023-12-04 20:41:37 +01:00
Sergio Pedri c0f83657b3 Check for cancellation during HLSL rewriting 2023-12-03 14:11:21 +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 2266fe8afd Zero-initialize constructor target instance in HLSL 2023-12-02 22:20:11 +01:00
Sergio Pedri b685f09d06 Enable constructors support in DX12 shaders 2023-12-02 19:13:26 +01:00
Sergio Pedri c827b92ea2 Remove two unnecessary NormalizeWhitespace calls 2023-11-30 23:14:58 +01:00
Sergio Pedri c0f6adb70b Correctly rewrite ref readonly parameters in HLSL 2023-11-27 00:08:06 +01:00
Sergio Pedri 8dc70916ac Use collection expressions to create empty collections 2023-11-20 23:06:22 +01:00
Sergio Pedri 358f378796 Replace ToArray() with collection expressions 2023-11-20 23:06:22 +01:00
Sergio Pedri 2a43123b81 Apply some code tweaks to make analysis happy 2023-10-19 23:43:22 +02:00
Sergio Pedri a5bda924d8 Strip readonly modifiers from methods in shaders 2023-05-17 20:03:15 +02:00
Sergio Pedri b24e6b4c0d Minor code refactorings 2022-10-29 16:03:31 +02:00
Sergio Pedri b9a133b74c Add .this qualifier to all field accesses 2022-10-15 09:10:18 -07:00
Sergio Pedri f2ed8a2d3b More minor code style tweaks (remove extra blank lines, etc.) 2022-10-15 09:10:18 -07:00
Sergio Pedri 8be9203a1c Remove unnecessary parentheses 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 e94636b80c Run dotnet format whitespace 2022-10-15 09:10:18 -07:00
Sergio Pedri 883d99ca9f Use pooled array builders in all generators 2022-10-07 09:14:17 -07:00
Sergio Pedri 2a62f00019 Fix instance methods rewriting for identifier names 2022-10-02 17:40:18 +02:00
Sergio Pedri bddd2a395c Add generator support for struct instance methods 2022-10-02 16:09:46 +02:00
Sergio Pedri 9eac3c779d Refactor diagnostic models to be properly equatable 2022-09-17 17:58:44 +02:00
Sergio Pedri 10ba55d156 Enable [ShaderMethod] support for global functions 2022-09-05 01:10:45 +02:00
Sergio Pedri dac1b99f2c Switch some ParseExpression calls to IdentifierName calls 2022-08-28 00:23:30 +02:00
Sergio Pedri 8b2af5c62f Enable generators support for parameter matched intrinsics 2022-08-27 03:10:49 +02:00
Sergio Pedri 7b46a7d527 For matching of known sampler methods 2022-08-09 17:37:55 +02:00
Sergio Pedri ae23529485 Remove some HLSL rewriting duplicated code 2022-08-09 17:37:55 +02:00
Sergio Pedri 945f6514b8 Update HLSL rewriters to use new Sample APIs 2022-08-09 17:37:55 +02:00
Sergio Pedri 7e5e695c2a Move ShaderSourceRewriter to shared file 2022-08-09 13:25:22 +02:00