コミットグラフ
69 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri 6bda02c86f Remove unnecessary code 2022-08-09 00:22:05 +02:00
Sergio Pedri 01549c6846 Implement HLSL generation for resource textures 2022-08-09 00:22:05 +02:00
Sergio Pedri 675bb94b7c Fix resource texture index generator with missing attributes 2022-08-08 15:45:45 +02:00
Sergio Pedri 21328f54a5 Add diagnostic for missing [D2DResourceTextureIndex] attribute 2022-08-08 15:45:45 +02:00
Sergio Pedri a3635b09d9 Add diagnostics for invalid [D2DResourceTextureIndex] uses 2022-08-08 15:45:45 +02:00
Sergio Pedri fdc69ed292 Add diagnostics for invalid resource texture setups 2022-08-08 15:45:44 +02:00
Sergio Pedri 8b42c7011e Initial implementation of LoadResourceTextureDescriptions generator 2022-08-08 15:45:44 +02:00
Sergio Pedri b28d3f2500 Add D2D1 resource texture types to HlslKnownTypes 2022-08-08 15:45:44 +02:00
Sergio Pedri eda4bd43ff Share known properties with D2D1 generator, add D2D1 mappings 2022-08-08 15:45:44 +02:00
Sergio Pedri a854aead17 Add D2D1PixelShader.GetResourceTextureDescriptions API 2022-08-08 15:45:44 +02:00
Sergio Pedri b51b002a3a Cleanup the D2D1 generator constant buffer code
Also bumps the maximum constant buffer size
2022-08-08 01:33:38 +02:00
Sergio Pedri 55ad39b817 Tweak diagnostics, add SampleInputAtPosition checks too 2022-08-07 18:04:24 +02:00
Sergio Pedri 5777e17e03 Add diagnostic for missing [D2DRequiresScenePosition] 2022-08-07 17:59:33 +02:00
Sergio Pedri 279c464dc2 Remove unnecessary modifiers for partial types 2022-06-19 02:57:59 +02:00
Sergio Pedri ddea0e8514 Fix generator with out of range simple inputs 2022-06-06 23:21:48 +02:00
Sergio Pedri a62f8ec774 Fix build error in ComputeSharp with C# preview 2022-06-05 13:55:49 +02:00
Sergio Pedri 94b40e5d61 Handle keywords in field names for custom types 2022-06-05 13:37:22 +02:00
Sergio Pedri f66342d212 Minor optimization to float literal rewriting 2022-05-29 23:14:25 +02:00
Sergio Pedri f2c9478631 Fix rewriting of integer double literals 2022-05-29 17:19:52 +02:00
Sergio PedriとAshley 772553852c Use pattern matching to check parse options
Co-authored-by: Ashley <[email protected]>
2022-05-29 03:25:40 +02:00
Sergio Pedri f2e4dac552 Add extra LF in shaders with no captured values 2022-05-29 03:25:40 +02:00
Sergio Pedri 989f346555 Add missing LF between include and defined constants 2022-05-29 03:25:40 +02:00
Sergio Pedri 502baaca03 Use raw multiline string literals for generated HLSL source
This is optionally enabled when C# preview is used
2022-05-29 03:25:40 +02:00
Simona Koníčková 1465b5fd9d Use GetText instead of ToFullString 2022-05-28 03:14:22 +02:00
Sergio Pedri f49831567e Use AttributeData for [D2DCompileOptions] assembly diagnostics 2022-05-27 18:37:35 +02:00
Sergio Pedri 7411c1fe0d Add diagnostics for [D2DCompileOptions] at assembly level 2022-05-24 22:10:15 +02:00
Sergio Pedri f5ea4b7911 Allow D2D1 attributes at assembly level 2022-05-24 02:36:39 +02:00
Sergio Pedri 59b4b13062 Add missing global:: prefix in generated LoadBytecode method 2022-05-23 00:40:42 +02:00
Sergio Pedri d75993107a Wire up [D2D1CompileOptions] to all generated code and public APIs
Also removes the diagnostics for invalid linking setup
2022-05-22 15:50:28 +02:00
Sergio Pedri b4b8b76d2f Wire up [D2D1CompileOptions] to [D2D1EmbeddedBytecode] 2022-05-22 01:50:14 +02:00
Sergio Pedri 0bfe836a4e Capture D2D1CompileOptions in source generator 2022-05-22 01:40:09 +02:00
Sergio Pedri 77c43a819e Optimize diagnostics flow in D2D1 source generator 2022-05-22 01:39:42 +02:00
Sergio Pedri a3a0425419 Add D2DCompileOptionsAttribute type 2022-05-22 01:17:35 +02:00
Sergio Pedri e5c24bc9d7 Code refactoring in internal D3DCompiler APIs 2022-05-20 21:47:07 +02:00
Sergio Pedri ec1798cbe3 Rename and tweak D2D1PixelOptions type 2022-05-08 21:50:17 +02:00
Sergio Pedri b211932881 Enable generation for ID2D1Shader.GetPixelOptions API 2022-05-08 21:50:17 +02:00
Sergio Pedri 6fbdef8ce4 Add D2D1 pixel option types and APIs 2022-05-08 21:50:17 +02:00
Sergio Pedri 6a83c6827d Rename input description LevelOfDetailCount parameter
Closes #270
2022-05-08 21:49:52 +02:00
Sergio Pedri 3b760f02d4 Enable generation for ID2D1Shader.LoadInputDescriptions API 2022-05-08 18:40:26 +02:00
Sergio Pedri 54d7cb53e2 Add D2D1 input description types 2022-05-08 18:40:25 +02:00
Sergio Pedri 80fea25b5a Enable generation for ID2D1Shader.GetOutputBuffer 2022-05-07 21:24:12 +02:00
Sergio Pedri f8b05d070c Add D2DOutputBuffer attribute and types 2022-05-07 21:24:12 +02:00
Sergio Pedri 245c308ad1 Make ID2D1Shader.GetInputType branchless 2022-05-06 23:50:27 +02:00
Sergio Pedri e7c4288adf Add D2D1InteropServices.GetPixelShaderInputType API 2022-05-06 19:34:31 +02:00
Sergio Pedri 6455678056 Implement generation for ID2D1Shader.GetInputType(uint) API 2022-05-06 03:16:08 +02:00
Sergio Pedri ee16303aeb Fix constants tracking when rewriting shader fields 2022-05-04 23:28:08 +02:00
Sergio Pedri 092a1eb814 Add unit test for void intrinsics 2022-05-01 11:02:00 +02:00
Sergio Pedri 4bbe394f55 Skip implicitly declared fields from all generated methods 2022-04-29 12:58:19 +02:00
Sergio Pedri 1ef6040e58 Tweak properties detection to block all field backed ones 2022-04-29 12:58:19 +02:00
Sergio Pedri 459517a181 Enable shaders to inherit shader interfaces 2022-04-29 12:58:19 +02:00