Sergio Pedri
|
dedfbd8728
|
Use primary constructor in ShaderSourceRewriter
|
2023-12-06 21:12:42 +01:00 |
|
Sergio Pedri
|
74820e1b57
|
Remove unnecessary ShaderSourceRewriter constructor
Also fix the nullability of the shaderType field
|
2023-12-06 21:12:42 +01:00 |
|
Sergio Pedri
|
eefd0de9f0
|
Add mapping of static fields to HLSL rewriters
|
2023-12-06 21:12:42 +01:00 |
|
Sergio Pedri
|
c0e78bb1a2
|
Add HlslDefinitionsSyntaxProcessor.TryGetStaticField
|
2023-12-06 21:12:42 +01:00 |
|
Sergio Pedri
|
b49e3365a4
|
Add diagnostic for invalid 'this' expressions
|
2023-12-06 20:22:19 +01:00 |
|
Sergio Pedri
|
3d1a131d23
|
Apply IDE0001 code fixers (simplify names)
|
2023-12-04 20:42:31 +01:00 |
|
Sergio Pedri
|
016d51e161
|
Avoid rewriting identifiers for instance methods
|
2023-12-04 20:41:37 +01:00 |
|
Sergio Pedri
|
c0f83657b3
|
Check for cancellation during HLSL rewriting
|
2023-12-03 14:11:21 +01:00 |
|
Sergio Pedri
|
5881b94dad
|
Optimize rewriting HLSL indexer access syntax
|
2023-12-03 13:06:10 +01:00 |
|
Sergio Pedri
|
7cfaf16ef8
|
Improve primary constructors error state, add test
|
2023-12-03 12:33:52 +01:00 |
|
Sergio Pedri
|
7e7b57cd67
|
Add a diagnostic for constructors with base constructors
|
2023-12-02 23:25:23 +01:00 |
|
Sergio Pedri
|
2266fe8afd
|
Zero-initialize constructor target instance in HLSL
|
2023-12-02 22:20:11 +01:00 |
|
Sergio Pedri
|
1660c8ca1b
|
Optimize HlslDefinitionsSyntaxProcessor.GetDeclaredTypes
|
2023-12-02 19:43:40 +01:00 |
|
Sergio Pedri
|
b685f09d06
|
Enable constructors support in DX12 shaders
|
2023-12-02 19:13:26 +01:00 |
|
Sergio Pedri
|
c827b92ea2
|
Remove two unnecessary NormalizeWhitespace calls
|
2023-11-30 23:14:58 +01:00 |
|
Sergio Pedri
|
dd0c3c4882
|
Seal all overrides in HlslSourceRewriter
|
2023-11-30 23:09:44 +01:00 |
|
Sergio Pedri
|
b266308c8b
|
Emit a diagnostic for collection expressions
|
2023-11-29 00:23:37 +01:00 |
|
Sergio Pedri
|
136dee44cd
|
Fix a generator crash processing ArrayTypeSyntax values
|
2023-11-29 00:19:43 +01:00 |
|
Sergio Pedri
|
1826122849
|
Handle and emit diagnostic for initializer expressions
|
2023-11-29 00:19:05 +01:00 |
|
Sergio Pedri
|
c0f6adb70b
|
Correctly rewrite ref readonly parameters in HLSL
|
2023-11-27 00:08:06 +01:00 |
|
Sergio Pedri
|
b49bb27f8e
|
Move shared code to HlslDefinitionsSyntaxProcessor
|
2023-11-24 15:16:10 +01:00 |
|
Sergio Pedri
|
3392dbea49
|
Remove code duplication in object creation rewriting
|
2023-11-24 15:16:10 +01:00 |
|
Sergio Pedri
|
b44504e1e7
|
Move AlignmentHelper type to Graphics folder
|
2023-11-24 13:34:48 +01:00 |
|
Sergio Pedri
|
c661ef7e80
|
Support [GloballyCoherent] in generator
|
2023-11-24 09:53:05 +01:00 |
|
Sergio Pedri
|
43b79bdf4b
|
Skip warnings for shader types with no fields
|
2023-11-24 00:32:27 +01:00 |
|
Sergio Pedri
|
78af23a4c0
|
Add NotReadonlyShaderTypeAnalyzerBase type
|
2023-11-23 23:20:12 +01:00 |
|
Sergio Pedri
|
fc5f06f5bf
|
Use primary constructors in base analyzer types
|
2023-11-23 23:11:52 +01:00 |
|
Sergio Pedri
|
f3f33d3b67
|
Fix XML docs in generated unsafe accessors
|
2023-11-23 00:27:45 +01:00 |
|
Sergio Pedri
|
6d560f08e2
|
Use collection expressions for array initializations
|
2023-11-20 23:06:22 +01:00 |
|
Sergio Pedri
|
8dc70916ac
|
Use collection expressions to create empty collections
|
2023-11-20 23:06:22 +01:00 |
|
Sergio Pedri
|
358f378796
|
Replace ToArray() with collection expressions
|
2023-11-20 23:06:22 +01:00 |
|
Sergio Pedri
|
46a6b25756
|
Use primary constructors in published projects
|
2023-11-20 23:06:21 +01:00 |
|
Sergio Pedri
|
9815b8532c
|
Generate GraphicsResourcesLoader type to load resources
|
2023-11-20 22:07:17 +01:00 |
|
Sergio Pedri
|
e3222c8d62
|
Fix generated code for shaders with bool fields
|
2023-11-20 21:11:45 +01:00 |
|
Sergio Pedri
|
940cdfdcdc
|
Fix handling empty shaders with just artificial fields
|
2023-11-20 21:11:45 +01:00 |
|
Sergio Pedri
|
777f8537f2
|
Fix handling artificial fields in D3D12 constant buffer
|
2023-11-20 21:11:45 +01:00 |
|
Sergio Pedri
|
3c7d5db340
|
Switch D3D12 generator to shared constant buffer logic
|
2023-11-20 21:11:44 +01:00 |
|
Sergio Pedri
|
0a7dbb3cfb
|
Add logic to optionally generate artificial fields
|
2023-11-20 21:11:44 +01:00 |
|
Sergio Pedri
|
5df310f87b
|
Only generate two way marshalling if requested
|
2023-11-20 21:11:44 +01:00 |
|
Sergio Pedri
|
4c5bd8a9da
|
Move constant buffer info gathering logic too
|
2023-11-20 21:11:44 +01:00 |
|
Sergio Pedri
|
545f4b6ca4
|
Move constant buffer syntax to shared project
|
2023-11-20 21:11:44 +01:00 |
|
Sergio Pedri
|
4ee81cabce
|
Add and integrate IConstantBufferInfo interface
|
2023-11-20 21:11:44 +01:00 |
|
Sergio Pedri
|
041a5c0288
|
Support primary field constructors in buffer marshaller
|
2023-11-20 20:51:40 +01:00 |
|
Sergio Pedri
|
531262e6f2
|
Always generate unsafe accessors for all fields
|
2023-11-20 20:51:40 +01:00 |
|
Sergio Pedri
|
2961612f47
|
Correctly generate accessors for nested/unaccessible fields
|
2023-11-20 20:51:40 +01:00 |
|
Sergio Pedri
|
2a43123b81
|
Apply some code tweaks to make analysis happy
|
2023-10-19 23:43:22 +02:00 |
|
Sergio Pedri
|
5b971b1b3d
|
Add NotAccessibleFieldTypeInGeneratedShaderDescriptorAttributeTargetAnalyzerBase
|
2023-10-19 13:59:06 +02:00 |
|
Sergio Pedri
|
e85c8f870a
|
Add NotAccessibleGeneratedShaderDescriptorAttributeTargetAnalyzerBase
|
2023-10-19 11:55:40 +02:00 |
|
Sergio Pedri
|
d5ddf8bf1e
|
Share MissingAllowUnsafeBlocksCompilationOptionAnalyzer
|
2023-10-19 01:59:45 +02:00 |
|
Sergio Pedri
|
e6f9261d87
|
Shader FieldInfo models across D2D1/D3D12 generators
|
2023-10-17 00:47:51 +02:00 |
|