コミットグラフ
2405 コミット
作成者 SHA1 メッセージ 日付
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 7396d0c974 Add Releasr Arm64 to pipeline script 2022-07-31 23:26:14 +02:00
Sergio Pedri 5b2e0bd6e5 Fix solution configuration, makr x64 the default 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 f1306a4621 Add unit test for multiple device removals 2022-07-31 23:26:14 +02:00
Sergio Pedri 22fccc032c Fix race conditions in device removed unit tests 2022-07-31 23:26:14 +02:00
Sergio Pedri f9c9b5a24b Code refactoring to unit tests 2022-07-31 23:26:14 +02:00
Sergio Pedri 358f89adb1 Improve GetDefault_VerifyContract unit test 2022-07-31 23:26:14 +02:00
Sergio Pedri 02ec241dde Restore unit test checks before publishing nightlies 2022-07-31 23:26:13 +02:00
Sergio Pedri 748f14d7fd Switch to cached devices in ComputeSharp tests 2022-07-31 23:26:13 +02:00
Sergio Pedri 37823f366c Move GPU disposal tests to DeviceLost test project 2022-07-31 23:26:13 +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 1226da5b4b Add unit tests for NativeObject dispose logic 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
Sergio Pedri 9dd707a835 Add safety Signal/Wait when disposing SwapChainManager 2022-07-31 23:26:13 +02:00
Sergio Pedri d5b746402e Add missing logic to reset the swap chain in ISwapChainPanelNative 2022-07-31 23:26:13 +02:00
Sergio Pedri 6921602b8a Add missing CloseHandle call in SwapChainManager 2022-07-31 23:26:13 +02:00
Sergio Pedri 77503542aa Add IDisposable interface to compute shader panels 2022-07-31 23:26:12 +02:00
Sergio Pedri 12f451977a Fix typo, enable nightly builds regardless of test results 2022-07-31 23:26:12 +02:00
Sergio Pedri 4b3dd0ecf9 Add unit tests for GraphicsDevice.GetDefault() contract 2022-07-31 23:26:12 +02:00
Sergio Pedri 27a5410a72 Ensure same graphics device is used 2022-07-31 23:26:12 +02:00
Sergio Pedri b1f596402e Simplify reference tracking logic in ComputeContext type 2022-07-31 23:26:12 +02:00
Sergio Pedri e045fc2dce Add unit test for InteropServices APIs with disposed device 2022-07-31 23:26:12 +02:00
Sergio Pedri 1ab3931391 Fix reference tracking with ComputeContext and async execution 2022-07-31 23:26:12 +02:00
Sergio Pedri 84ebe36975 Make InteropServices APIs thread safe 2022-07-31 23:26:12 +02:00
Sergio Pedri 65fe7f53c6 Switch all GetLease() calls to using declarations 2022-07-31 23:26:12 +02:00
Sergio Pedri 5100ab471a Move all Guard checks at the start of each method 2022-07-31 23:26:12 +02:00
Sergio Pedri 149a03d92b Move ReferenceTracker logic to NativeObject base class 2022-07-31 23:26:11 +02:00
Sergio Pedri 297aa7ab36 Switch to ReferenceTracker for all device/resource types 2022-07-31 23:26:11 +02:00
Sergio Pedri c5997d2c62 Add ReferenceTracker type 2022-07-31 23:26:11 +02:00
Sergio Pedri c8c779d827 Add lock to synchronize Dispose/DeviceLost logic 2022-07-31 23:26:11 +02:00
Sergio Pedri 8b8ca034db Skip device disposal test on .NET 6 (possible D3D12MA bug) 2022-07-31 23:26:11 +02:00
Sergio Pedri d09d56c573 Fix a NRE due to race condition in device lost callback 2022-07-31 23:26:11 +02:00
Sergio Pedri 93c82feb98 Reset default device on dispose 2022-07-31 23:26:11 +02:00
Sergio Pedri 4e5acba69c Remove GraphicsDevice.Default property and APIs 2022-07-31 23:26:11 +02:00
Sergio Pedri ea0f792ae6 Implement GraphicsDevice.GetDefault() method 2022-07-31 23:26:11 +02:00
Sergio Pedri ca96337b8a Add GraphicsDevice.GetDefault() declaration 2022-07-31 23:26:10 +02:00
Sergio Pedri 701c88983c Add DeviceLostReason.AccessDenied value 2022-07-31 23:26:10 +02:00
Sergio Pedri aa50b02144 Add device disposal reference counting tests 2022-07-31 23:26:10 +02:00
Sergio Pedri 6359b05500 Fix access violation on NS2.0 target due to wrong marshal method 2022-07-31 23:26:10 +02:00
Sergio Pedri c2c7613b47 Fix memory leak in ID3D12DescriptorHandleAllocator 2022-07-31 23:26:10 +02:00
Sergio Pedri d7a5e89dcb Fix race condition in GraphicsDevice GC handle cleanup 2022-07-31 23:26:10 +02:00
Sergio Pedri b50de2528f Fix incorrect cleanup of device lost event handle 2022-07-31 23:26:10 +02:00
Sergio Pedri 3f77e0a9b5 Add more device lost unit tests 2022-07-31 23:26:10 +02:00
Sergio Pedri 90f74bd402 Improve error handling in DeviceExtensions 2022-07-31 23:26:10 +02:00