コミットグラフ
93 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri 5930baf69a Fix method name in generated filename hints 2022-08-18 14:26:10 +02:00
Sergio Pedri 1738f36455 Rename [D2DEmbeddedBytecode] to [D2DShaderProfile] 2022-08-18 14:26:10 +02:00
Sergio Pedri 140aa10a12 Add diagnostic for invalid return type 2022-08-18 14:26:09 +02:00
Sergio Pedri c998002f90 Add diagnostics for [D2DPixelShaderSource] 2022-08-18 14:26:09 +02:00
Sergio Pedri 51f2642e80 Add [StringSyntax] to [D2DPixelShaderSource] parameter 2022-08-18 14:26:09 +02:00
Sergio Pedri 87768dc2b4 Add new models for shader methods, update generators 2022-08-18 14:26:09 +02:00
Sergio Pedri 4e6f4f55d4 Initial implementation of generator for shader methods 2022-08-18 14:26:09 +02:00
Sergio Pedri ddc625fe13 Fix incorrect diagnostic in resource texture index validation 2022-08-15 15:01:17 +02:00
Sergio Pedri 3515c4402b Add diagnostic for invalid D2D1 resource texture element type 2022-08-10 22:15:18 +02:00
Sergio Pedri 97a87500e2 Update D2D1 mappings for generic resource texture types 2022-08-10 22:15:18 +02:00
Sergio Pedri 3471d6233b Make D2D1 resource texture types generic 2022-08-10 22:15:18 +02:00
Sergio Pedri dc5260ea42 Match for Float4 return for D2D entry point 2022-08-10 15:25:07 +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 0dd0bd587a Move known samplers to HlslKnownMethods type 2022-08-09 17:37:55 +02:00
Sergio Pedri 4edc0dc3c3 Use new extension to check [SkipLocalsInit] accessibility 2022-08-09 16:11:25 +02:00
Sergio Pedri 3e6aedaed1 Move StaticFieldRewriter to shared file 2022-08-09 13:37:20 +02:00
Sergio Pedri 7e5e695c2a Move ShaderSourceRewriter to shared file 2022-08-09 13:25:22 +02:00
Sergio Pedri baffb8fccb Move HlslSourceRewriter to shared file 2022-08-09 12:54:14 +02:00
Sergio Pedri 9df9c57a67 Move NeedsD2DRequiresScenePositionAttribute down 2022-08-09 12:41:54 +02:00
Sergio Pedri 71f148fc1a Move HlslSourceRewriter.Diagnostics to shared file 2022-08-09 12:38:27 +02:00
Sergio Pedri 3e3d7fa36f Implement HLSL rewriting for resource texture size properties 2022-08-09 00:33:07 +02:00
Sergio Pedri 30fcb8675d Implement HLSL rewriting for resource texture indexers 2022-08-09 00:22:27 +02:00
Sergio Pedri 53411903c1 Fix incorrect [D2DRequiresScenePosition] name in diagnostic 2022-08-09 00:22:05 +02:00
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