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
Sergio Pedri
dae3024cae
Simplified generated file names
2021-07-08 19:21:42 +02:00
Sergio Pedri
0cc3f08eec
Fixed handling of exp constants in shaders
2021-05-11 18:13:35 +02:00
Sergio Pedri
3a29a14df6
Added sampled texture indexers to 3D texture types
2021-05-11 01:54:37 +02:00
Sergio Pedri
640e612464
Initial draft support for 2D texture sampling
2021-05-11 01:54:37 +02:00
Sergio Pedri
3aeb843023
Removed implicit __z field from pixel shaders
2021-05-11 01:54:37 +02:00
Sergio Pedri
31c7058118
Code refactoring to ExecuteMethodRewriter type
2021-05-11 01:54:37 +02:00
Sergio Pedri
5a4e05ba94
Added diagnostics for multiple shader type implementations
2021-05-11 01:54:37 +02:00
Sergio Pedri
49d73b675f
Introduced IPixelShader<TPixel> interface, initial working support
2021-05-11 01:54:37 +02:00
Sergio Pedri
003a322912
Added forward declarations for shader methods
...
Fixes https://github.com/Sergio0694/ComputeSharp/issues/117
2021-04-04 18:45:42 +02:00
Sergio Pedri
1a72e599a0
Switched ShaderMethodSourceGenerator to SyntaxReceiver
2021-04-04 16:15:52 +02:00
Sergio Pedri
92c5dd2550
Switched IComputeShaderSourceGenerator to SyntaxReceiver
2021-04-04 16:15:52 +02:00
Sergio Pedri
41bb623472
Switched IComputeShaderHashCodeGenerator to SyntaxReceiver
2021-04-04 16:15:52 +02:00
Sergio Pedri
e488450518
Switched IComputeShaderDataLoaderGenerator to SyntaxReceiver
2021-04-04 16:15:39 +02:00
Sergio Pedri
cc771e9843
Switched AutoConstructorGenerator to SyntaxReceiver
2021-04-04 15:56:17 +02:00
Sergio Pedri
d967fb480a
Added better exception for missing shader metadata
2021-03-18 13:49:52 +01:00
Sergio Pedri
e3627a25f9
Fixed SGs fail with symbols from different syntax trees
2021-03-18 13:15:00 +01:00
Sergio Pedri
a94e5559a0
Added diagnostics for shaders exceeding root signature size
2021-03-12 14:55:30 +01:00
Sergio Pedri
33c1415f2d
Skipped fixed buffer fields from auto constructor and data loader
2021-03-12 14:26:47 +01:00
Sergio Pedri
861da7eb77
Updated packages and fixed analyzer rules in SG project
2021-03-12 12:47:47 +01:00
Sergio Pedri
f42dc2df10
Minor codegen tweaks to shader dispatch data loader
2021-03-12 00:04:56 +01:00
Sergio Pedri
9d41cbf94c
Fixed HLSL compilation when using nested struct types
2021-03-11 23:12:09 +01:00
Sergio Pedri
758a19cae5
Fixed alignment of first fields in nested struct types
2021-03-11 22:53:02 +01:00
Sergio Pedri
3b06569dcd
Enabled data loading for captured custom struct types
2021-03-11 19:51:25 +01:00
Sergio Pedri
54a8b8a4e8
Enabled rewriting of custom struct captures
2021-03-11 18:24:29 +01:00
Sergio Pedri
b330616aa9
Fixed source generator unit tests
2021-03-11 15:38:13 +01:00
Sergio Pedri
3147e8fade
Added diagnostics for shader properties
2021-03-11 15:38:13 +01:00
Sergio Pedri
e12169c11e
Switched static properties to fields, added globals support
2021-03-11 15:38:13 +01:00