feat(core): add scalar ops and improve memory handling

Added scalar operator overloads for Vector types, fixed pointer math in Store methods, and improved enumerator and memory management. Updated test setup and removed allocation leak tests.

- Added left-hand scalar operator overloads for Vector2/3/4.
- Fixed pointer arithmetic in Store and GetUnsafePtr methods.
- Marked SetValue as readonly in UnsafeSparseSet.
- Improved enumerator initialization/reset for slot map and sparse set.
- Updated test projects' AssemblyVersion.
- Removed TestAllocationManager and added global AllocationManager setup/teardown.
- Updated TestConcurrentSlotMap for thread safety and correct cancellation.
- Minor formatting and parameter improvements.
This commit is contained in:
2026-04-03 00:00:09 +09:00
parent 8d5ed30c5d
commit c0580d2b46
12 changed files with 73 additions and 113 deletions

View File

@@ -0,0 +1,19 @@
using Misaki.HighPerformance.LowLevel.Buffer;
namespace Misaki.HighPerformance.Test.UnitTest;
[TestClass]
public static class GlobalSetup
{
[GlobalTestInitialize]
public static void GlobalInitialize(TestContext ctx)
{
AllocationManager.Initialize(AllocationManagerInitOpts.Default);
}
[GlobalTestCleanup]
public static void GlobalCleanup(TestContext ctx)
{
AllocationManager.Dispose();
}
}