コミットグラフ
318 コミット
作成者 SHA1 メッセージ 日付
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
Sergio Pedri a66061453b Add derived analyzers for not readonly shader types 2023-11-24 00:32:27 +01:00
Sergio Pedri 3fb3891d93 Update NuGet packages to latest stable 2023-11-22 22:12:33 +01:00
Sergio Pedri ade3a1e453 Update D2D1 diagnostic descriptors for consistency 2023-11-21 19:31:47 +01:00
Sergio Pedri d1dd7ad618 Remove unnecessary suppressions, document other ones 2023-11-21 16:24:43 +01:00
Sergio Pedri bd00d6b8a4 Remove unnecessary CS0649 suppressions 2023-11-21 16:24:43 +01:00
Sergio Pedri e09007e910 Add InvalidD2D1CompileOptionsEnableLinkingOnShaderTypeAnalyzer 2023-11-21 14:37:14 +01:00
Sergio Pedri a736c3009d Improve and optimize IsSimpleInputShader helper 2023-11-21 14:37:14 +01:00
Sergio Pedri 74ccc5e09f Use collection expressions in D2D shader source generator 2023-11-20 23:28:50 +01:00
Sergio Pedri 48f3b847a7 Adopt collection expression syntax in generated code 2023-11-20 23:28:50 +01:00
Sergio Pedri d79fdeab71 Enable RVA fields again for generated input types 2023-11-20 23:28:50 +01:00
Sergio Pedri c9a5882f43 Use collection expressions for empty arrays and spans 2023-11-20 23:06:22 +01:00
Sergio Pedri 6d560f08e2 Use collection expressions for array initializations 2023-11-20 23:06:22 +01:00
Sergio Pedri 9815b8532c Generate GraphicsResourcesLoader type to load resources 2023-11-20 22:07:17 +01:00
Sergio Pedri 940cdfdcdc Fix handling empty shaders with just artificial fields 2023-11-20 21:11:45 +01:00
Sergio Pedri 6f843e3e85 Remove unnecessary partial file 2023-11-20 21:11:44 +01:00
Sergio Pedri 3c7d5db340 Switch D3D12 generator to shared constant buffer logic 2023-11-20 21:11:44 +01:00
Sergio Pedri 5df310f87b Only generate two way marshalling if requested 2023-11-20 21:11:44 +01:00
Sergio Pedri 4c5bd8a9da Move constant buffer info gathering logic too 2023-11-20 21:11:44 +01:00
Sergio Pedri 545f4b6ca4 Move constant buffer syntax to shared project 2023-11-20 21:11:44 +01:00
Sergio Pedri 4ee81cabce Add and integrate IConstantBufferInfo interface 2023-11-20 21:11:44 +01:00
Sergio Pedri 01282b40c3 Improve XML docs for generated constant buffer fields 2023-11-20 20:51:41 +01:00
Sergio Pedri 819908db16 Fix primary constructor fields in generated D2D1 source 2023-11-20 20:51:41 +01:00
Sergio Pedri 041a5c0288 Support primary field constructors in buffer marshaller 2023-11-20 20:51:40 +01:00
Sergio Pedri ba9f421c97 Simplify and optimize ConstantBuffer.GetInfo method 2023-11-20 20:51:40 +01:00
Sergio Pedri 785606dcf4 Generate unsafe accessors for fields as extension methods 2023-11-20 20:51:40 +01:00
Sergio Pedri accb602f1f Strip readonly-ness via the generated unsafe accessors 2023-11-20 20:51:40 +01:00
Sergio Pedri 531262e6f2 Always generate unsafe accessors for all fields 2023-11-20 20:51:40 +01:00
Sergio Pedri 2961612f47 Correctly generate accessors for nested/unaccessible fields 2023-11-20 20:51:40 +01:00
Sergio Pedri 99a0c2b8b6 Skip duplicate field accessors for same fields 2023-11-20 20:51:40 +01:00
Sergio Pedri bec001e3b0 Simplify constant buffer files in D2D1 generator 2023-11-20 20:51:40 +01:00
Sergio Pedri 2fc520c965 Emit ConstantBufferMarshaller type in D2D1 generator 2023-11-20 20:51:39 +01:00
Sergio Pedri dc713aedb9 Use target-typed new() for diagnostic descriptors 2023-10-21 18:03:07 +02:00