コミットグラフ
78 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri e3222c8d62 Fix generated code for shaders with bool fields 2023-11-20 21:11:45 +01:00
Sergio Pedri 940cdfdcdc Fix handling empty shaders with just artificial fields 2023-11-20 21:11:45 +01:00
Sergio Pedri 777f8537f2 Fix handling artificial fields in D3D12 constant buffer 2023-11-20 21:11:45 +01:00
Sergio Pedri 3c7d5db340 Switch D3D12 generator to shared constant buffer logic 2023-11-20 21:11:44 +01:00
Sergio Pedri 0a7dbb3cfb Add logic to optionally generate artificial fields 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 041a5c0288 Support primary field constructors in buffer marshaller 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 2a43123b81 Apply some code tweaks to make analysis happy 2023-10-19 23:43:22 +02:00
Sergio Pedri 5b971b1b3d Add NotAccessibleFieldTypeInGeneratedShaderDescriptorAttributeTargetAnalyzerBase 2023-10-19 13:59:06 +02:00
Sergio Pedri e85c8f870a Add NotAccessibleGeneratedShaderDescriptorAttributeTargetAnalyzerBase 2023-10-19 11:55:40 +02:00
Sergio Pedri d5ddf8bf1e Share MissingAllowUnsafeBlocksCompilationOptionAnalyzer 2023-10-19 01:59:45 +02:00
Sergio Pedri e6f9261d87 Shader FieldInfo models across D2D1/D3D12 generators 2023-10-17 00:47:51 +02:00
Sergio Pedri 2c8d0d2385 Share HlslBytecodeInfo model across D3D12/D2D1 generators 2023-10-14 00:35:04 +02:00
Sergio Pedri aa708dc2d5 Remove leftover method 2023-10-14 00:35:04 +02:00
Sergio Pedri 61f155bfb6 Switch IShader.BuildHlslSource to use indented writer 2023-10-13 23:07:47 +02:00
Sergio Pedri 7506cab338 Simplify creating source generator builder types 2023-10-09 13:31:41 +02:00
Sergio Pedri 6accd17c9f Switch D2D1 generation methods to use indented writer 2023-09-30 01:34:04 +02:00
Sergio Pedri bc1fc17b21 Add new WriteByteArrayInitializationExpressions API 2023-09-30 01:34:04 +02:00
Sergio Pedri f9aa96ce3d Generate constant buffer native layout mapping type 2023-09-28 02:13:39 +02:00
Sergio Pedri 0780345ef9 Fix indentation of HLSL source expression 2023-09-28 00:37:45 +02:00
Sergio Pedri a5bda924d8 Strip readonly modifiers from methods in shaders 2023-05-17 20:03:15 +02:00
Sergio Pedri 02b50db482 Use SyntaxTokenList.Any extension in SyntaxNodeExtensions 2023-03-10 02:30:23 +01:00
Sergio Pedri dc4195a0d7 Remove unnecessary .csproj/.shproj nodes and comments 2023-01-22 00:11:40 +01:00
Sergio Pedri b24e6b4c0d Minor code refactorings 2022-10-29 16:03:31 +02:00
Sergio Pedri eec5404f7c Centralize byte formatting code into shared helper type 2022-10-16 05:44:20 -07: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 d910922ef5 Use blocks for all if statements 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 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 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 4840800566 Move SemanticModelProvider type 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 d62c459633 Remove symbols from ID2D1ShaderGenerator pipeline 2022-09-17 16:43:13 +02:00
Sergio Pedri 080011fe8f Share raw multiline string literal formatting logic 2022-09-17 12:58:01 +02:00
Sergio Pedri 10ba55d156 Enable [ShaderMethod] support for global functions 2022-09-05 01:10:45 +02:00
Sergio Pedri 83e2162700 Implement operator intrinsics support for compound assignments 2022-08-28 22:32:50 +02:00
Sergio Pedri 7a92525b71 Implement operator intrinsics support for binary expressions 2022-08-28 22:32:49 +02:00