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
ecb8991807
Fix names of D2D1 resource texture types
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
9199e0c6b9
Add D2D1ResourceTextureDescription type
2022-08-08 15:45:44 +02:00
Sergio Pedri
abb1d46a2d
Add ID2D1ResourceTextureDescriptionsLoader and API
2022-08-08 15:45:44 +02:00
Sergio Pedri
7216a7b72e
Add 1D and 3D texture resource types
2022-08-08 15:45:44 +02:00
Sergio Pedri
d509767d45
Rename two files to match the type names
2022-08-08 15:45:44 +02:00
Sergio Pedri
35e5bd90a3
Add the D2DResourceIndexAttribute type
2022-08-08 15:45:44 +02:00
Sergio Pedri
4c2920e659
Add D2D1TextureResource intrinsic type
2022-08-08 15:45:44 +02:00
Sergio Pedri
4f6d94cc8f
Enable generator support for defaulted fields
2022-08-08 15:45:44 +02:00
Sergio Pedri
5a93bc23eb
Add AutoConstructorBehaviorAttribute type
2022-08-08 15:45:44 +02:00
Sergio Pedri
ef4834be94
Fix a StackOverflowException in some polyfills
...
These APIs were never actually called by any code paths reachable by ComputeSharp (they're mostly there just to make porting polyfills easier), but still good to fix
2022-08-08 15:45:23 +02:00
Sergio Pedri
8cc1e42fe9
Update .NET Community Toolkit to 8.0.0
2022-08-08 02:28:34 +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
c9b4bf3431
Merge pull request #333 from Sergio0694/dev/fix-missing-pools
...
Fix two allocations using D3D12MA without custom pools
2022-08-07 18:42:12 +02:00
Sergio Pedri
58f6799d7d
Fix two allocations using D3D12MA without custom pools
2022-08-07 18:10:06 +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
bc15b590c0
Remove leftover [UnconditionalSuppressMessage] polyfill
2022-08-05 14:11:35 +02:00
Sergio Pedri
3deaeb0328
Fix trimming annotations, use [RequiresUnreferencedCode]
2022-08-05 14:11:35 +02:00
Sergio Pedri
be62eed772
Replace pragma with [UnconditionalSuppressMessage] in TypeInfo<T>
2022-08-05 14:11:35 +02:00
Sergio Pedri
e78b90c941
Add UnconditionalSuppressMessageAttribute polyfill
2022-08-05 14:11:35 +02:00
Sergio Pedri
6415972f51
Minor fixes to polyfills
2022-08-05 14:11:35 +02:00
Sergio Pedri
9f68fc31da
Fix NAOT trimming annotations for ComputeSharp
2022-08-05 14:11:34 +02:00
Sergio Pedri
a5f5e76dfa
Add trimming annotations to TypeInfo<T>
2022-08-05 14:11:34 +02:00
Sergio Pedri
24e9dedfc5
Add DynamicallyAccessedMembersAttribute polyfills
2022-08-05 14:11:34 +02:00
Sergio Pedri
62e3f3538d
Add missing readonly modifier
2022-08-03 15:46:23 -07:00
Sergio Pedri
7dca92dc33
Stop the render loop before requesting disposal
2022-08-03 15:46:23 -07:00
Sergio Pedri
c577733ac7
Only get reference tracking leases when rendering
2022-08-03 15:46:23 -07:00
Sergio Pedri
4cf14e9ccf
Restore disposal checks in readonly wrappers
2022-08-03 22:47:23 +02:00
Sergio Pedri
28abda5396
Fix thread-safety when disposing shader resources
2022-08-01 22:15:38 +02:00
Sergio Pedri
443ec85b37
Update all NuGet packages to latest stable
2022-07-31 16:23:36 -07:00
Sergio Pedri
6358d2bf99
Make NativeObject logic lock-free
2022-08-01 00:46:13 +02:00
Sergio Pedri
b0709526ef
Add ability to create shader panels for target devices
2022-07-31 23:26:14 +02:00
Sergio Pedri
a86775f550
Add RenderingFailedEventArgs type
2022-07-31 23:26:14 +02:00
Sergio Pedri
480004be21
Add DeviceLostEventArgs type
2022-07-31 23:26:14 +02:00
Sergio Pedri
42c862c148
Fix disposing resources after device on .NET 6
2022-07-31 23:26:14 +02:00
Sergio Pedri
2623754991
Fix shader panels Dispose() logic when called off the UI thread
2022-07-31 23:26:13 +02:00
Sergio Pedri
33983506a9
Add Disposed event to compute shader panels
2022-07-31 23:26:13 +02:00
Sergio Pedri
05eff37ff0
Optimize reference tracking logic
...
Remove one object field and virtual stub dispatch calls
2022-07-31 23:26:13 +02:00
Sergio Pedri
93a98a60ac
Minor code refactoring
2022-07-31 23:26:13 +02:00
Sergio Pedri
edddb72ddd
Add eager disposal of cached pipeline states when disposing devices
2022-07-31 23:26:13 +02:00