コミットグラフ
350 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri e276231756 Remove trailing newline to some leftover files 2023-12-25 17:37:17 +01:00
Sergio Pedri 5127ede784 Remove header from generated HLSL sources 2023-12-22 17:36:02 +01:00
Sergio Pedri a926a1211f Move and rename the HlslSourceHelper type 2023-12-21 18:40:13 +01:00
Sergio Pedri 86b39c28f5 Refactor HlslBytecodeSyntaxProcessor partial constants 2023-12-17 15:09:00 +01:00
Sergio Pedri 9c645170c8 Adopt HlslBytecodeSyntaxProcessor in both generators 2023-12-17 14:43:38 +01:00
Sergio Pedri 2a519c3f51 Add HlslBytecodeSyntaxProcessor shared helper type 2023-12-17 13:31:17 +01:00
Sergio Pedri ef821be2b2 Add Encoding.GetBytes polyfill to simplify D3DCompiler 2023-12-17 12:48:27 +01:00
Sergio Pedri 963ec0ecb4 Use cancellation token for D2D shader linking 2023-12-17 12:48:27 +01:00
Sergio Pedri e27b7e4379 Minor tweaks to DiagnosticInfo 2023-12-17 12:26:38 +01:00
Sergio Pedri 2c6eb178d5 Add [RequiresDoublePrecisionSupport] diagnostics 2023-12-17 12:18:41 +01:00
Sergio Pedri 9bad2e99db Add double precision support check to DX12 generator 2023-12-17 12:18:41 +01:00
Sergio Pedri 35bc8ce649 Minor code tweaks to DX12 generator 2023-12-17 12:17:21 +01:00
Sergio Pedri 5d58622ddf Move D2D reflection code to D2D generator only 2023-12-17 02:39:45 +01:00
Sergio Pedri 76752e2e47 Add InvalidD2DRequiresDoublePrecisionSupportAnalyzer and tests 2023-12-16 18:13:32 +01:00
Sergio Pedri 0051423caa Add diagnostics for incorrect double precision annotations 2023-12-16 18:13:32 +01:00
Sergio Pedri f16dcab8fd Add check for double precision in D2D1 generator 2023-12-16 17:34:20 +01:00
Sergio Pedri 8474eec869 Add D2DEnableRuntimeCompilationOnAssemblyAnalyzer and tests 2023-12-16 13:30:58 +01:00
Sergio Pedri 3722eb3026 Add more diagnostics for [D2DEnableRuntimeCompilation] 2023-12-16 13:19:55 +01:00
Sergio Pedri 37af7113e6 Add D2DRuntimeCompilationDisabledAnalyzer 2023-12-16 02:26:02 +01:00
Sergio Pedri 8d5d24ea44 Adopt HlslSourceHelper type to generate HLSL sources 2023-12-13 14:22:25 +01:00
Sergio Pedri fb3439556c Use forward declarations wherever possible 2023-12-13 14:22:25 +01:00
Sergio Pedri 556876349e Minor code tweak, add more comments 2023-12-12 23:24:19 +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 2544c039d6 Switch HLSL writing to IndentedTextWriter 2023-12-10 21:57:26 +01:00
Sergio Pedri 2b1b864c8d Add dedicated diagnostic for Math/MathF calls 2023-12-09 18:38:20 +01:00
Sergio Pedri 3b92f3d595 Remove VectorN/Math/MatF HLSL projections 2023-12-09 16:30:30 +01:00
Sergio Pedri 0e82ce93e3 Optimize lookups for HLSL known types 2023-12-08 13:20:47 +01:00
Sergio Pedri 058db06971 Use collection expressions in more places 2023-12-08 12:54:21 +01:00
Sergio Pedri 7726ba445e Enable StripReflectionData flag in D2D generator 2023-12-07 12:01:19 +01:00
Sergio Pedri b832874e55 Track [D2DRequiresScenePosition] from external static 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 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 b49e3365a4 Add diagnostic for invalid 'this' expressions 2023-12-06 20:22:19 +01:00
Sergio Pedri c0f83657b3 Check for cancellation during HLSL rewriting 2023-12-03 14:11:21 +01:00
Sergio Pedri 7e7b57cd67 Add a diagnostic for constructors with base constructors 2023-12-02 23:25:23 +01:00
Sergio Pedri 7a1aed7890 Plug constructors support into D2D generator too 2023-12-02 19:46:55 +01:00
Sergio Pedri c9272392d1 Pass cancellation token to SyntaxReferece.GetSyntax() 2023-11-30 20:42:06 +01:00
Sergio Pedri c5a79fd1e1 Port cancellation token checks to D2D1 generator 2023-11-30 00:17:59 +01:00
Sergio Pedri 6e46f14ab3 Port handling of partials to D2D1 generator too 2023-11-29 22:24:48 +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
Sergio Pedri 1826122849 Handle and emit diagnostic for initializer expressions 2023-11-29 00:19:05 +01:00
Sergio Pedri bf7c470cb3 Skip generating for generic shader types, and warn 2023-11-26 16:35:20 +01:00
Sergio Pedri 28a458630e Fix interface detection in descriptor interface analyzers 2023-11-25 21:20:22 +01:00
Sergio Pedri b49bb27f8e Move shared code to HlslDefinitionsSyntaxProcessor 2023-11-24 15:16:10 +01:00
Sergio Pedri b44504e1e7 Move AlignmentHelper type to Graphics folder 2023-11-24 13:34:48 +01:00
Sergio Pedri c18f833c67 Minor refactoring to D2D compiler files 2023-11-24 13:26:02 +01:00
Sergio Pedri 43b79bdf4b Skip warnings for shader types with no fields 2023-11-24 00:32:27 +01:00