コミットグラフ
245 コミット
作成者 SHA1 メッセージ 日付
Sergio Pedri 0f6ae572cd Implement initial version of TryGetBytecode generator 2021-12-06 17:43:44 +01:00
Sergio Pedri 7c46fad051 Add code to extract and load native libraries 2021-12-06 17:43:44 +01:00
Sergio Pedri 92b2934229 Add [EmbeddedBytecode] attribute 2021-12-06 17:43:43 +01:00
Sergio Pedri cd7d4c8362 Add shared TerraFX and polyfill references to source generator
Also include dxcompiler and dxil as embedded resources
2021-12-06 17:43:43 +01:00
Sergio Pedri b5a0bbf453 Update NuGet packages 2021-11-21 02:39:16 +01:00
Sergio Pedri d8a4a7412d Restore <TreatWarningsAsErrors> and fix warnings 2021-11-20 16:48:18 +01:00
Sergio Pedri e69a0b5835 Disabled [SkipLocalsInit] generation on unsupported targets 2021-11-16 17:34:01 +01:00
Sergio Pedri 06ce524740 Add .NET Standard 2.0 target to ComputeSharp
Also switch TerraFX.Interop.Windows to shared project
2021-11-16 17:34:01 +01:00
Sergio Pedri ee0d3a7b68 Removed multiline variable declarations 2021-11-06 23:05:49 +01:00
Sergio Pedri 3b3e348c4f Fixed source generator project packing 2021-10-30 17:32:46 +02:00
Sergio Pedri 88d8dda2dd Fixed a build error in ShaderMethodSourceGenerator files 2021-10-30 15:11:44 +02:00
Sergio Pedri de187f842d Stripped [HlslIntrinsicName] from ComputeSharp builds 2021-10-30 15:11:44 +02:00
Sergio Pedri 06b12f5a6c Switched source generators to global:: type names 2021-10-30 15:11:44 +02:00
Sergio Pedri d5e3114f7c Refactored code to use file scoped using declarations 2021-10-30 15:11:43 +02:00
Sergio Pedri 5cb9f08f1f Enabled generated global usings for HLSL primitives 2021-10-30 15:11:43 +02:00
Adam Dernis accb41ab9e Added missing mappable methods to HlslKnownMethods 2021-10-22 12:30:53 +02:00
Sergio Pedri 5c32501fd5 Added [SkipLocalsInit] to generated methods, if possible 2021-07-22 23:34:57 +02:00
Sergio Pedri bbb42e5367 Switched generated methods to explicit interface implementations 2021-07-21 14:09:22 +02:00
Sergio Pedri 56b326a6e4 Refactored internal IShader<TSelf> interface 2021-07-21 14:09:22 +02:00
Sergio Pedri a16b15eeca Updated NuGet packages 2021-07-15 13:20:04 +02:00
Sergio Pedri 423b2ffd63 Fixed static fields in discovered types 2021-07-15 12:42:38 +02:00
Sergio Pedri 09c9c48fd7 Fixed shader compilation error from external namespaces 2021-07-14 20:30:51 +02:00
Sergio Pedri 06111edacb Enabled methods import for captured delegates 2021-07-14 19:58:13 +02:00
Sergio Pedri 8e0db58a19 Fixed processing of discovered methods for [SourceMethod] 2021-07-14 17:26:05 +02:00
Sergio Pedri 4db77f72b0 Enabled types import for captured delegates 2021-07-14 16:09:24 +02:00
Sergio Pedri da786aaf0d Enabled support for var declarations in shaders 2021-07-14 15:32:09 +02:00
Sergio Pedri 4c50309bdd Enabled constants import for captured delegates 2021-07-13 20:19:56 +02:00
Sergio Pedri fdc06c2b45 Added setup to support imported delegate members mapping 2021-07-13 14:07:51 +02:00
Sergio Pedri c40bdf0a26 Remove unnecessary ArrayPoolStringBuilder public methods 2021-07-13 13:35:16 +02:00
Sergio Pedri b0db306f57 Aggregated HLSL source building statements 2021-07-12 22:03:32 +02:00
Sergio Pedri ce5e9703cd Enabled initial support for shader metaprogramming 2021-07-12 20:21:56 +02:00
Sergio Pedri f2c1b79b6a Restored code generation for [ShaderMethod] attribute 2021-07-12 17:42:24 +02:00
Sergio Pedri 6fbcf21f74 Switched source generated files to only use LF line endings 2021-07-12 16:43:43 +02:00
Sergio Pedri 632cd6faf5 Fixed constant buffers registration in HLSL source 2021-07-12 15:58:52 +02:00
Sergio Pedri 2e1bb04f8c Fixed HLSL source processing of captured resources 2021-07-12 15:58:52 +02:00
Sergio Pedri 13ef2009e8 Added missing XML docs 2021-07-12 15:58:52 +02:00
Sergio Pedri 8a764c36de Optimized HLSL source building with target size hint 2021-07-12 15:58:52 +02:00
Sergio Pedri 56b0b758fa Changed ref kind for ArrayPoolStringBuilder type in IShader<TSelf>
This will allow generated code to request an approximated target size from the shared buffer pool, and reduce or eliminate the number of times the target buffer needs to be resized while building the HLSL source
2021-07-12 15:58:52 +02:00
Sergio Pedri 5fdee964da Fixed shader dispatching with new architecture 2021-07-12 15:58:52 +02:00
Sergio Pedri 7552dd5189 Removed legacy shader loading code 2021-07-12 15:58:52 +02:00
Sergio Pedri f8207f11ff Removed previous individual source generators for shaders 2021-07-12 15:58:52 +02:00
Sergio Pedri a5a4a77e65 Implemented source generator logic for LoadDispatchMetadataMethod 2021-07-12 15:58:52 +02:00
Sergio Pedri d4eeac8c04 Added draft of new aggregate shader source generator type 2021-07-12 15:58:52 +02:00
Sergio Pedri fdb0f691a2 Added interface APIs to load shader metadata 2021-07-12 15:58:52 +02:00
Sergio Pedri e432a197a0 Added initial BuildHlslString source generator implementation
Not actually working yet, pending other changes to pipeline creation
2021-07-12 15:58:52 +02:00
Sergio Pedri 43f32ced28 Fixed build error with ambiguous field names 2021-07-12 15:58:52 +02:00
Sergio Pedri 2d200db5ba Fixed unit test build errors 2021-07-12 15:58:52 +02:00
Sergio Pedri 7e86a23d76 Updated IComputeShaderDataLoaderGenerator to use IShader<TSelf> 2021-07-12 15:58:51 +02:00
Sergio Pedri 2d579758cd Removed unnecessary hashcode computation 2021-07-12 15:58:51 +02:00
Sergio Pedri bcc3364403 Switched hashcode generator to use IShader<TSelf>.GetDispatchId() 2021-07-12 15:58:51 +02:00