after merge from remote

This commit is contained in:
2026-09-03 00:14:51 +08:00
502 changed files with 710 additions and 721 deletions
@@ -6,14 +6,14 @@
// -----------------------------------------------------------------------------
using BenchmarkDotNet.Attributes;
using StgSharp.HighPerformance.Memory;
using Nitload.Common.HighPerformance.Memory;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Tlsf = StgSharp.HighPerformance.Memory.TwoLayerSegregatedFitAllocator;
using Tlsf = Nitload.Common.HighPerformance.Memory.TwoLayerSegregatedFitAllocator;
namespace StgSharp.Benchmark
namespace Nitload.Benchmark
{
[MemoryDiagnoser]
public class TlsfAllocatorBench
@@ -10,12 +10,12 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StgSharp.Common\StgSharp.Common.csproj" Properties="DisablePostBuildCopy=true" />
<ProjectReference Include="..\Nitload.Common\Nitload.Common.csproj" Properties="DisablePostBuildCopy=true" />
</ItemGroup>
<ItemGroup>
<NativeArtifacts Include="$(SolutionDir)build\**\StgSharp.Native*.dll" />
<NativeArtifacts Include="$(SolutionDir)build\**\StgSharp.Native*.pdb" />
<NativeArtifacts Include="$(SolutionDir)build\**\Nitload.Native*.dll" />
<NativeArtifacts Include="$(SolutionDir)build\**\Nitload.Native*.pdb" />
</ItemGroup>
<Target Name="CopyNativeArtifacts" AfterTargets="Build" Condition="'$(DisableNativeCopy)'!='true'">
@@ -10,7 +10,7 @@ using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Toolchains.InProcess.Emit;
using StgSharp.Benchmark;
using Nitload.Benchmark;
IConfig config = ManualConfig.Create(DefaultConfig.Instance)
.AddLogger(ConsoleLogger.Default)
@@ -6,12 +6,12 @@
// -----------------------------------------------------------------------------
using BenchmarkDotNet.Attributes;
using StgSharp.Collections;
using Nitload.Common.Collections;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace StgSharp.Benchmark
namespace Nitload.Benchmark
{
/// <summary>
/// Benchmark comparing SwissTable against <see cref="Dictionary{TKey, TValue}" /> under
@@ -11,7 +11,7 @@ using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public sealed class BidirectionalDictionary<TFirst, TSecond> : IBidirectionalDictionary<TFirst, TSecond>
where TFirst : notnull
@@ -10,7 +10,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Reflection;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public sealed class CapacityFixedBag<T> : IEnumerable<T>
{
@@ -10,7 +10,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public static class CapacityFixedListBuilder
{
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Threading;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
[CollectionBuilder(typeof(CapacityFixedStackBuilder), nameof(CapacityFixedStackBuilder.Create))]
public class CapacityFixedStack<T> : IEnumerable<T>
@@ -11,7 +11,7 @@ using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
/// <summary>
/// Lock-free, fixed-capacity stack implemented on top of an array using atomic index
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public class ConcurrentFlexibleArray<T>(
int capacity = 4
@@ -7,7 +7,7 @@
using System.Collections.Generic;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public interface IBidirectionalDictionary<TFirst, TSecond> : IDictionary<TFirst, TSecond>
{
@@ -9,7 +9,7 @@ using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public static class LinearBagBuilder
{
@@ -14,7 +14,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
/// <summary>
/// Part of a collection. This contains a direct reference to _origin collection, so all
@@ -9,7 +9,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public class RandomAccessibleStack<T> : IEnumerable<T>
{
@@ -10,7 +10,7 @@ using System.Numerics;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public partial class SwissTable
{
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
using System.Runtime.Intrinsics.Arm;
using System.Runtime.Intrinsics.X86;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
/// <summary>
///
@@ -12,7 +12,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
/// <summary>
/// Zero-overhead view over a contiguous region of unmanaged memory. Does not own the memory —
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Collections
namespace Nitload.Common.Collections
{
public unsafe class UnmanagedStack<T>(
T* address,
@@ -16,7 +16,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace StgSharp
namespace Nitload
{
public static class Dialogue
{
@@ -92,7 +92,7 @@ namespace StgSharp
}
string consoleRoute = Path.Combine(
path, @"StgSharp.TerminalDialogue", $@"StgSharp.TerminalDialogue{exeName}");
path, @"Nitload.TerminalDialogue", $@"Nitload.TerminalDialogue{exeName}");
_dialogueProcessInfo = new ProcessStartInfo
{
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp
namespace Nitload
{
public class UniformEmptyReferenceException : Exception
{
@@ -14,7 +14,7 @@ using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp
namespace Nitload
{
public static unsafe partial class World
{
@@ -9,7 +9,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
namespace StgSharp
namespace Nitload
{
/// <summary>
/// Represents a statically activated module that can be registered and initialized as part of
@@ -5,15 +5,15 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance;
using StgSharp.HighPerformance.ProcessorAbstraction;
using StgSharp.Timing;
using Nitload.Common.HighPerformance;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using Nitload.Common.Timing;
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace StgSharp
namespace Nitload
{
internal enum GraphicAPI : byte
{
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
global using StgSharp.Internal;
global using Nitload.Common.Internal;
global using System;
global using System.Runtime.CompilerServices;
global using System.Threading;
[assembly: InternalsVisibleTo("StgSharp.HighPerformance")]
[assembly: InternalsVisibleTo("StgSharp.RegularAnalysis")]
[assembly: InternalsVisibleTo("StgSharp.Graphics")]
[assembly: InternalsVisibleTo("StgSharp.Mathematics")]
[assembly: InternalsVisibleTo("Nitload.Common.HighPerformance")]
[assembly: InternalsVisibleTo("Nitload.RegularAnalysis")]
[assembly: InternalsVisibleTo("Nitload.Graphics")]
[assembly: InternalsVisibleTo("Nitload.Mathematics")]
[assembly: InternalsVisibleTo("StgSharpDebug")]
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance
namespace Nitload.Common.HighPerformance
{
public class IdMultiplexer { }
}
@@ -10,7 +10,7 @@ using System.Buffers;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
[CollectionBuilder(typeof(BufferStackBuilder), nameof(BufferStackBuilder.Create))]
public unsafe class BufferStack<T> : IDisposable where T : unmanaged
@@ -94,22 +94,19 @@ namespace StgSharp.HighPerformance.Memory
}
/// <summary>
/// Fills the stack in place via a caller-supplied callback, mirroring
/// <c>CapacityFixedStack&lt;T&gt;.FillRange</c>.
/// Fills the stack in place via a caller-supplied callback, mirroring <c>
/// CapacityFixedStack&lt;T&gt;.FillRange </c>.
/// </summary>
/// <remarks>
/// Preferred over building a temporary span and handing it to
/// <see cref="BufferStackBuilder.Create{T}(ReadOnlySpan{T})"/>:
/// <list type="bullet">
/// <item>The caller no longer needs a scratch buffer at all — the
/// callback writes straight into this stack's native storage, so there
/// is no <c>stackalloc</c> to size and no copy afterwards.</item>
/// <item><c>Span&lt;T&gt;</c> does not implicitly convert to
/// <c>ReadOnlySpan&lt;T&gt;</c> in a way that participates in generic
/// type inference before C# 14, so <c>Create(span)</c> fails with
/// CS0411 on older compilers. Passing the element type through the
/// enclosing instance sidesteps inference entirely.</item>
/// </list>
/// Preferred over building a temporary span and handing it to <see
/// cref="BufferStackBuilder.Create{T}(ReadOnlySpan{T})" />: <list type="bullet"> ///
/// <item> The caller no longer needs a scratch buffer at all — the /// callback writes
/// straight into this stack's native storage, so there /// is no <c> stackalloc </c> to
/// size and no copy afterwards. </item> /// <item><c> Span&lt;T&gt; </c> does not
/// implicitly convert to /// <c> ReadOnlySpan&lt;T&gt; </c> in a way that participates in
/// generic /// type inference before C# 14, so <c> Create(span) </c> fails with ///
/// CS0411 on older compilers. Passing the element type through the /// enclosing instance
/// sidesteps inference entirely. </item> ///</list>
/// </remarks>
internal unsafe void FillRange(
SpanAction<T, nuint> filling,
@@ -191,4 +188,4 @@ namespace StgSharp.HighPerformance.Memory
}
}
}
}
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Threading;
using Nitload.Threading;
using System;
using System.Buffers;
@@ -14,7 +14,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public static class BufferStackBuilder
{
@@ -5,10 +5,10 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System.Runtime.InteropServices;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public partial class L4
{
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
/**/
public partial class L4
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public partial class L4
{
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
#pragma warning disable CA1032 // Implement standard exception constructors
@@ -5,8 +5,8 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Collections;
using StgSharp.HighPerformance.Memory;
using Nitload.Common.Collections;
using Nitload.Common.HighPerformance.Memory;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
@@ -14,7 +14,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public partial class L4
{
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
[Flags]
public enum PredictResult
@@ -8,7 +8,7 @@
using System.ComponentModel;
using System.Numerics;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public unsafe partial class L4
{
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public partial class L4
{
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Collections;
using StgSharp.HighPerformance.Memory;
using StgSharp.HighPerformance.ProcessorAbstraction;
using Nitload.Common.Collections;
using Nitload.Common.HighPerformance.Memory;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System.Data;
using System.Runtime.InteropServices;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public sealed unsafe partial class L4 : IDisposable
{
@@ -14,7 +14,7 @@ using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
#pragma warning disable CA2225
@@ -8,7 +8,7 @@
using System;
using System.Runtime.CompilerServices;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public unsafe struct SlabAllocationHandle<T> : IDisposable where T : unmanaged
{
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Threading;
using Nitload.Threading;
using System;
using System.Collections.Generic;
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
internal sealed unsafe class ChunkedSlabAllocator<T> : SlabAllocator<T> where T : unmanaged
{
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Threading;
using Nitload.Threading;
using System;
using System.Collections.Generic;
@@ -16,7 +16,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
internal sealed unsafe class ConcurrentChunkedSlabAllocator<T> : SlabAllocator<T>
where T : unmanaged
@@ -5,9 +5,9 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Collections;
using StgSharp.HighPerformance.Memory;
using StgSharp.Threading;
using Nitload.Common.Collections;
using Nitload.Common.HighPerformance.Memory;
using Nitload.Threading;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
internal unsafe class FixedSlabAllocator<T> : SlabAllocator<T> where T : unmanaged
{
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Threading;
using Nitload.Threading;
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public sealed unsafe class ConcurrentSequentialSlabAllocator<T> : SlabAllocator<T>
where T : unmanaged
@@ -5,10 +5,10 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory;
using Nitload.Common.HighPerformance.Memory;
using System;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public static class SlabAllocator
{
@@ -5,8 +5,8 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory;
using StgSharp.HighPerformance.ProcessorAbstraction;
using Nitload.Common.HighPerformance.Memory;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -18,9 +18,9 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using static StgSharp.HighPerformance.Memory.TwoLayerSegregatedFitAllocator;
using static Nitload.Common.HighPerformance.Memory.TwoLayerSegregatedFitAllocator;
namespace StgSharp.HighPerformance.Memory
namespace Nitload.Common.HighPerformance.Memory
{
public unsafe class TwoLayerSegregatedFitAllocator : IDisposable
{
@@ -12,7 +12,7 @@ using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
/// <summary>
/// Abstraction for a wide SIMD register or equivalent packed numeric storage. Provides raw
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
public readonly struct LogicalCore
{
@@ -16,7 +16,7 @@ using System.Runtime.Intrinsics.X86;
using System.Text;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
[StructLayout(LayoutKind.Explicit, Pack = 16)]
public unsafe struct M128 : IRegisterPresentation
@@ -15,7 +15,7 @@ using System.Runtime.Intrinsics;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
[StructLayout(LayoutKind.Explicit, Pack = 16)]
public unsafe struct M256 : IRegisterPresentation
@@ -15,7 +15,7 @@ using System.Runtime.Intrinsics;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 64)]
public unsafe struct M512 : IRegisterPresentation
@@ -10,7 +10,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
[StructLayout(LayoutKind.Explicit, Pack = 8)]
public unsafe struct M64 : IRegisterPresentation
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory;
using Nitload.Common.HighPerformance.Memory;
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
@@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
public static partial class Numa
{
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction
namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{
public class NumaNode
{
@@ -10,7 +10,7 @@ using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
namespace StgSharp.Internal
namespace Nitload.Common.Internal
{
internal static unsafe partial class DefaultLog
{
@@ -11,13 +11,13 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Internal
namespace Nitload.Common.Internal
{
internal static unsafe partial class Native
{
internal const string LibName =
"StgSharp.Native";
"Nitload.Native";
internal const string LogPath =
"SS_error.log";
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp
namespace Nitload
{
public enum LogType
{
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.PipeLine;
using Nitload.Common.PipeLine;
using System;
using System.Collections.Generic;
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public class CrossFrameOperation : IConvertableToPipelineNode
{
@@ -10,7 +10,7 @@ using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public delegate void PipelineNodeOperation(
in Dictionary<string, PipelineNodeInPort> input,
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Threading;
using Nitload.Threading;
using System;
using System.Collections.Concurrent;
@@ -18,7 +18,7 @@ using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public static class PipeLineRunner
{
@@ -13,7 +13,7 @@ using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public static class PipelineMarshal
{
@@ -16,7 +16,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
/// <summary>
///
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public abstract record class PipelineNodeLabel
{
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public class PipelineNodeInPort
{
@@ -14,7 +14,7 @@ using System.Threading;
using System.Xml;
using System.Xml.Linq;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
/// <summary>
/// A sets of complex logic designed for running in multi threads environment. Warning: do not
@@ -15,7 +15,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
public class PipelineConnector
{
@@ -14,7 +14,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.PipeLine
namespace Nitload.Common.PipeLine
{
internal sealed class BeginningNode : PipelineNode
{
@@ -12,7 +12,7 @@ using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.State
namespace Nitload.State
{
public interface ISimpleStateMachine<TStateNode, TStateLabel, TStateContext>
where TStateNode : SimpleStateMachineNode<TStateNode, TStateLabel, TStateContext>
@@ -13,7 +13,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.State
namespace Nitload.State
{
public abstract class SimpleStateMachineNode<TSelf, TLabel, TStateContext>
where TSelf : SimpleStateMachineNode<TSelf, TLabel, TStateContext>
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.State
namespace Nitload.State
{
public abstract class StateContext { }
}
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.Threading
namespace Nitload.Threading
{
/// <summary>
/// Provide a lock for managing concurrent access to a buffer that can be expanded and use a
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.Threading
namespace Nitload.Threading
{
public class CancellableTask : IDisposable
{
@@ -8,7 +8,7 @@
using System;
using System.Threading;
namespace StgSharp.Threading
namespace Nitload.Threading
{
/// <summary>
/// A single-consumer bell/signal primitive.
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
namespace StgSharp.Threading
namespace Nitload.Threading
{
public static partial class ThreadHelper
{
@@ -9,7 +9,7 @@ using System;
using System.Runtime.CompilerServices;
using System.Threading;
namespace StgSharp.Threading
namespace Nitload.Threading
{
/// <summary>
/// A counting semaphore with adjustable maximum capacity at runtime. Implemented using one or
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Collections;
using StgSharp.HighPerformance.ProcessorAbstraction;
using StgSharp.Timing;
using Nitload.Common.Collections;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using Nitload.Common.Timing;
using System;
using System.Diagnostics;
using System.Threading;
namespace StgSharp
namespace Nitload
{
public static partial class World
{
@@ -5,11 +5,11 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Timing;
using Nitload.Common.Timing;
using System;
using System.Runtime.CompilerServices;
namespace StgSharp.Timing
namespace Nitload.Common.Timing
{
public abstract class TimeSequence
{
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp;
using StgSharp.HighPerformance.ProcessorAbstraction;
using Nitload;
using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System;
using System.Linq;
using System.Threading;
namespace StgSharp.Timing
namespace Nitload.Common.Timing
{
public class TimeSourceStartupConfiguration(
nuint bindedNumaNode = 0,
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory;
using Nitload.Common.HighPerformance.Memory;
using System;
using System.Collections.Concurrent;
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.Timing
namespace Nitload.Common.Timing
{
public partial class TimeSpanProvider
{
@@ -5,12 +5,12 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Timing;
using Nitload.Common.Timing;
using System;
using System.Runtime.CompilerServices;
using System.Threading;
namespace StgSharp.Timing
namespace Nitload.Common.Timing
{
/// <summary>
/// TimeSpanProvider: uses a bound TimeSequence and TimeSourceProviderBase to publish span
@@ -9,7 +9,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
public interface IImageProvider
{
@@ -10,7 +10,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
public static class ImageHelper
{
@@ -5,15 +5,15 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Graphics;
using StgSharp.Graphics.OpenGL;
using Nitload.Graphics;
using Nitload.Graphics.OpenGL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
/// <summary>
/// Interface of all kinds OpenGL BufferHandle objects
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp;
using Nitload;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
public class GraphicModuel : IStaticModule
{
@@ -5,12 +5,12 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Internal;
using Nitload.Common.Internal;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
internal static unsafe partial class GraphicFramework
{
@@ -5,12 +5,12 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL;
using Nitload.Graphics.OpenGL;
using System;
using System.Runtime.CompilerServices;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
public class Image : IImageProvider
{
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL;
using Nitload.Graphics.OpenGL;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
public delegate IntPtr ImageLoader(
@@ -5,8 +5,8 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Collections;
using StgSharp.Graphics;
using Nitload.Common.Collections;
using Nitload.Graphics;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -16,7 +16,7 @@ using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
/// <summary>
/// A collection of a sets of OpenGL textures. The collection can automatically select one of
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL;
using Nitload.Graphics.OpenGL;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
public abstract class GlBufferObjectBase : BufferObjectBase
{
@@ -1,12 +1,12 @@
// <auto-generated>
// Generated by StgSharp.GenerateGL on 2026-08-25 09:22:55Z
// <auto-generated>
// Generated by Nitload.GenerateGL on 2026-08-25 09:22:55Z
// Command availability history
// </auto-generated>
using System;
using System.Collections.Frozen;
using System.Collections.Generic;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
internal enum CommandHistoryAction { Added, Removed }
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL;
using Nitload.Graphics.OpenGL;
using System;
using System.Collections.Generic;
@@ -13,7 +13,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Graphics.ShaderEdit
namespace Nitload.Graphics.ShaderEdit
{
public interface IglConvertable
{
@@ -9,7 +9,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
public static partial class glManager
{
@@ -5,9 +5,9 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.Internal;
using StgSharp.Mathematics;
using StgSharp.Mathematics;
using Nitload.Common.Internal;
using Nitload.Mathematics;
using Nitload.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -15,7 +15,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
public static partial class glManager
{
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
public partial class glRender
{
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
public partial class glRender
{
@@ -11,7 +11,7 @@ using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Graphics.OpenGL
namespace Nitload.Graphics.OpenGL
{
internal delegate void GLVULKANPROCNV();
@@ -10,7 +10,7 @@ using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Graphics
namespace Nitload.Graphics
{
public interface IPixel
{
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
namespace StgSharp.Graphics.ShaderEdit
namespace Nitload.Graphics.ShaderEdit
{
// Temporary compatibility type for ShaderStruct. The new shader model will replace it.
public enum InternalShaderType

Some files were not shown because too many files have changed in this diff Show More