コミットグラフ
395 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri dab94bdae7 Only emit raw multiline string literals when possible 2022-10-08 15:05:52 +02:00
Sergio Pedri 883d99ca9f Use pooled array builders in all generators 2022-10-07 09:14:17 -07:00
Sergio Pedri a15fce2a54 Use ImmutableArrayBuilder<char> for bytecode text 2022-10-07 09:14:17 -07:00
Sergio Pedri bddd2a395c Add generator support for struct instance methods 2022-10-02 16:09:46 +02:00
Sergio Pedri 219db68545 Fix ThreadIds.Normalized logic to be in [0, 1] range 2022-09-27 00:01:32 +02:00
Sergio Pedri c908cc57e5 Add InvalidComputeContextCopyAnalyzer 2022-09-24 11:21:40 -07:00
Sergio Pedri d4d813ca94 Rename HResultExtensions to HRESULTExtensions 2022-09-20 15:03:21 +02:00
Sergio Pedri 5ef4304489 Bump Roslyn dependencies to 4.4.0-2.final
Also remove explicit NuGet feed
2022-09-19 20:06:38 +02:00
Sergio Pedri 9d8aa1d57b Fix message for CMPS0044 error 2022-09-18 14:39:00 +02:00
Sergio Pedri 527a134082 Fix diagnostics propagation in ComputeSharp generator 2022-09-17 23:01:50 +02:00
Sergio Pedri d8aefe3128 Remove symbols from ShaderMethodSourceGenerator pipeline 2022-09-17 20:49:17 +02:00
Sergio Pedri a205efe6fa Remove symbols from IShaderGenerator pipeline 2022-09-17 20:35:38 +02:00
Sergio Pedri 9eac3c779d Refactor diagnostic models to be properly equatable 2022-09-17 17:58:44 +02:00
Sergio Pedri 87f2e04ca0 Make all models directly equatable 2022-09-17 14:48:33 +02:00
Sergio Pedri 080011fe8f Share raw multiline string literal formatting logic 2022-09-17 12:58:01 +02:00
Sergio Pedri 5cd53f3077 Remove conditional paths for raw multiline strings 2022-09-16 23:03:35 +02:00
Sergio Pedri a2872e3626 Bump Roslyn to 4.4 2022-09-16 22:08:25 +02:00
Sergio Pedri a282c19a7a Remove unnecessary warning suppressions 2022-09-16 21:52:28 +02:00
Sergio Pedri d336cc461f Use ForAttributeWithMetadataName in ShaderMethodSourceGenerator 2022-09-16 21:52:28 +02:00
Sergio Pedri 4a26e8ec2a Bump generators to Roslyn 4.3.0 2022-09-16 21:52:28 +02:00
Sergio Pedri f41ce77acd Move [UnscopedRef] to be shared with all projects 2022-09-16 10:38:38 -07:00
Sergio Pedri fa03a6e612 Add leading trivia to all generated sources
// <auto-generated/>
2022-09-06 08:38:59 +02:00
Sergio Pedri 579e9786e9 Use .g.cs suffix for all generated files 2022-09-06 07:57:05 +02:00
Sergio Pedri 10ba55d156 Enable [ShaderMethod] support for global functions 2022-09-05 01:10:45 +02:00
Sergio Pedri 8c7c659aa3 Add texture 1D mappings to source generator 2022-08-31 02:31:00 +02:00
Sergio Pedri 74a7c1e3e5 Cast to Bool when loading bool-s in dispatch data loaders 2022-08-27 23:04:13 +02:00
Sergio Pedri 1e3611a060 Prevent bool fields in custom struct types in shaders
These are not allowed due to alignment reasons
2022-08-27 16:50:22 +02:00
Sergio Pedri 8bd2f80eae Add cast intrinsics to source generators 2022-08-27 01:49:53 +02:00
Sergio Pedri 2de22e1cb3 Remove unnecessary using definitions 2022-08-20 16:15:40 +02:00
Sergio Pedri fb1c24a623 Fix Interlocked HLSL intrinsics 2022-08-18 12:35:45 +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 71f148fc1a Move HlslSourceRewriter.Diagnostics to shared file 2022-08-09 12:38:27 +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 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 279c464dc2 Remove unnecessary modifiers for partial types 2022-06-19 02:57:59 +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 398ec17fb3 Use raw multiline string literals in DX12 generator as well 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 ee16303aeb Fix constants tracking when rewriting shader fields 2022-05-04 23:28:08 +02:00