switch root namespace name to NITLOAD

This commit is contained in:
Youmu Liu
2026-09-02 18:15:03 +08:00
parent 4218baad48
commit 7c7101ee48
502 changed files with 710 additions and 721 deletions
+5 -4
View File
@@ -29,8 +29,9 @@ build.ninja
BenchmarkDotNet.Artifacts/ BenchmarkDotNet.Artifacts/
# Khronos OpenGL Registry input is supplied locally; keep only its instructions. # Khronos OpenGL Registry input is supplied locally; keep only its instructions.
/tools/StgSharp.GenerateGL/xml/* /tools/Nitload.GenerateGL/xml/*
!/tools/StgSharp.GenerateGL/xml/README.md !/tools/Nitload.GenerateGL/xml/README.md
/StgSharp.Native/lib/ /src/Nitload.Native/lib/*
!/StgSharp.Native/lib/**/CMakeLists.txt !/src/Nitload.Native/lib/**/
!/src/Nitload.Native/lib/**/CMakeLists.txt
+1 -1
View File
@@ -51,7 +51,7 @@
<SolutionRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'Directory.Build.props'))\</SolutionRoot> <SolutionRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'Directory.Build.props'))\</SolutionRoot>
<!-- native 库名称 --> <!-- native 库名称 -->
<NativeLibName>StgSharp.Native</NativeLibName> <NativeLibName>Nitload.Native</NativeLibName>
</PropertyGroup> </PropertyGroup>
<!-- ════════════════════════════════════════════════════════ --> <!-- ════════════════════════════════════════════════════════ -->
+4 -4
View File
@@ -21,7 +21,7 @@
SkipUnchangedFiles="true" /> SkipUnchangedFiles="true" />
<Message Importance="high" <Message Importance="high"
Text="[StgSharp] $(MSBuildProjectName) → $(ManagedBuildDir)" /> Text="[Nitload] $(MSBuildProjectName) → $(ManagedBuildDir)" />
</Target> </Target>
<!-- ════════════════════════════════════════════════════════ --> <!-- ════════════════════════════════════════════════════════ -->
@@ -50,16 +50,16 @@
Condition="'@(_NativeLibFile)'!='' Or '@(_NativeSymFile)'!=''" /> Condition="'@(_NativeLibFile)'!='' Or '@(_NativeSymFile)'!=''" />
<Message Importance="high" <Message Importance="high"
Text="[StgSharp] Native $(NativeFileName) ($(BuildRid)) → $(OutputPath)" Text="[Nitload] Native $(NativeFileName) ($(BuildRid)) → $(OutputPath)"
Condition="'@(_NativeLibFile)'!=''" /> Condition="'@(_NativeLibFile)'!=''" />
<Warning Text="[StgSharp] Native library not found at $(NativeBuildDir)$(NativeFileName). Build StgSharp.Native first!" <Warning Text="[Nitload] Native library not found at $(NativeBuildDir)$(NativeFileName). Build Nitload.Native first!"
Condition="!Exists('$(NativeBuildDir)$(NativeFileName)')" /> Condition="!Exists('$(NativeBuildDir)$(NativeFileName)')" />
</Target> </Target>
<!-- ════════════════════════════════════════════════════════ --> <!-- ════════════════════════════════════════════════════════ -->
<!-- NuGet 打包:把所有已存在的 RID native 放进 runtimes/ --> <!-- NuGet 打包:把所有已存在的 RID native 放进 runtimes/ -->
<!-- 只在 StgSharp.Common 里生效(通过 IsNativeHost 属性) --> <!-- 只在 Nitload.Common 里生效(通过 IsNativeHost 属性) -->
<!-- ════════════════════════════════════════════════════════ --> <!-- ════════════════════════════════════════════════════════ -->
<Target Name="CollectNativeForPack" <Target Name="CollectNativeForPack"
BeforeTargets="GenerateNuspec" BeforeTargets="GenerateNuspec"
+5 -5
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<package > <package >
<metadata> <metadata>
<id>StgSharp</id> <id>Nitload</id>
<version>1.0.0</version> <version>1.0.0</version>
<title>StgSharp</title> <title>Nitload</title>
<authors>Nitload</authors> <authors>Nitload</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license> <license type="expression">MIT</license>
@@ -15,8 +15,8 @@
<tags>OpenGL C#</tags> <tags>OpenGL C#</tags>
</metadata> </metadata>
<files> <files>
<file src="StgSharp\bin\x64\Release\netstandard2.1\StgSharp.dll" target="lib\netstandard2.1\StgSharp.dll" /> <file src="src\Nitload.Common\bin\x64\Release\net8.0\Nitload.Common.dll" target="lib\net8.0\Nitload.Common.dll" />
<file src="StgSharp\bin\x64\Release\netstandard2.1\StgSharp.xml" target="lib\netstandard2.1\StgSharp.xml" /> <file src="src\Nitload.Common\bin\x64\Release\net8.0\Nitload.Common.xml" target="lib\net8.0\Nitload.Common.xml" />
<file src="StgSharp\bin\x64\Release\netstandard2.1\StgSharpC.dll" target="lib\netstandard2.1\StgSharpC.dll" /> <file src="bin\win-x64\Nitload.Native.dll" target="runtimes\win-x64\native\Nitload.Native.dll" />
</files> </files>
</package> </package>
+7 -7
View File
@@ -3,27 +3,27 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18 # Visual Studio Version 18
VisualStudioVersion = 18.3.11520.95 d18.3 VisualStudioVersion = 18.3.11520.95 d18.3
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Common", "src\StgSharp.Common\StgSharp.Common.csproj", "{3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Common", "src\Nitload.Common\Nitload.Common.csproj", "{3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
{20CBFF26-6746-402E-992C-7B643E9423EB} = {20CBFF26-6746-402E-992C-7B643E9423EB} {20CBFF26-6746-402E-992C-7B643E9423EB} = {20CBFF26-6746-402E-992C-7B643E9423EB}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StgSharp.Native", "src\StgSharp.Native\StgSharp.Native.vcxproj", "{20CBFF26-6746-402E-992C-7B643E9423EB}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Nitload.Native", "src\Nitload.Native\Nitload.Native.vcxproj", "{20CBFF26-6746-402E-992C-7B643E9423EB}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0961B2BE-415C-45EA-8607-5B83623B2EF7}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0961B2BE-415C-45EA-8607-5B83623B2EF7}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig .editorconfig = .editorconfig
EndProjectSection EndProjectSection
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.TerminalDialogue", "src\StgSharp.TerminalDialogue\StgSharp.TerminalDialogue.csproj", "{10B5819F-2A62-41B6-980A-EB9E76A0E95C}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.TerminalDialogue", "src\Nitload.TerminalDialogue\Nitload.TerminalDialogue.csproj", "{10B5819F-2A62-41B6-980A-EB9E76A0E95C}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Model", "src\StgSharp.Model\StgSharp.Model.csproj", "{D9538DE0-EE4C-4183-86D6-7DFC08A7BDFB}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Model", "src\Nitload.Model\Nitload.Model.csproj", "{D9538DE0-EE4C-4183-86D6-7DFC08A7BDFB}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Mathematics", "src\StgSharp.Mathematics\StgSharp.Mathematics.csproj", "{9946599F-4D34-440F-840D-F9443D5AEFAA}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Mathematics", "src\Nitload.Mathematics\Nitload.Mathematics.csproj", "{9946599F-4D34-440F-840D-F9443D5AEFAA}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.RegularAnalysis", "src\StgSharp.RegularAnalysis\StgSharp.RegularAnalysis.csproj", "{46339874-C6B8-4361-997E-2E30387E51F9}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.RegularAnalysis", "src\Nitload.RegularAnalysis\Nitload.RegularAnalysis.csproj", "{46339874-C6B8-4361-997E-2E30387E51F9}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Graphics", "src\StgSharp.Graphics\StgSharp.Graphics.csproj", "{80CD3DDE-0642-451D-82DF-0DE422FC6E34}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Graphics", "src\Nitload.Graphics\Nitload.Graphics.csproj", "{80CD3DDE-0642-451D-82DF-0DE422FC6E34}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
+10 -10
View File
@@ -9,32 +9,32 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharpDebug", "test\StgSh
{20CBFF26-6746-402E-992C-7B643E9423EB} = {20CBFF26-6746-402E-992C-7B643E9423EB} {20CBFF26-6746-402E-992C-7B643E9423EB} = {20CBFF26-6746-402E-992C-7B643E9423EB}
{3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF} = {3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF} {3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF} = {3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF}
EndProjectSection EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0961B2BE-415C-45EA-8607-5B83623B2EF7}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0961B2BE-415C-45EA-8607-5B83623B2EF7}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig .editorconfig = .editorconfig
EndProjectSection EndProjectSection
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Common", "src\StgSharp.Common\StgSharp.Common.csproj", "{3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Common", "src\Nitload.Common\Nitload.Common.csproj", "{3EAF2EE6-FA9E-4F57-951F-7E6F8125DFBF}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
{20CBFF26-6746-402E-992C-7B643E9423EB} = {20CBFF26-6746-402E-992C-7B643E9423EB} {20CBFF26-6746-402E-992C-7B643E9423EB} = {20CBFF26-6746-402E-992C-7B643E9423EB}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Benchmark", "src\Nitload.Benchmark\Nitload.Benchmark.csproj", "{0D4D2A8F-2B5B-4F7D-8D63-4A9AF4B4C782}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Benchmark", "src\StgSharp.Benchmark\StgSharp.Benchmark.csproj", "{0D4D2A8F-2B5B-4F7D-8D63-4A9AF4B4C782}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Nitload.Native", "src\Nitload.Native\Nitload.Native.vcxproj", "{20CBFF26-6746-402E-992C-7B643E9423EB}"
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StgSharp.Native", "src\StgSharp.Native\StgSharp.Native.vcxproj", "{20CBFF26-6746-402E-992C-7B643E9423EB}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.TerminalDialogue", "src\Nitload.TerminalDialogue\Nitload.TerminalDialogue.csproj", "{10B5819F-2A62-41B6-980A-EB9E76A0E95C}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.TerminalDialogue", "src\StgSharp.TerminalDialogue\StgSharp.TerminalDialogue.csproj", "{10B5819F-2A62-41B6-980A-EB9E76A0E95C}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Model", "src\Nitload.Model\Nitload.Model.csproj", "{D9538DE0-EE4C-4183-86D6-7DFC08A7BDFB}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Model", "src\StgSharp.Model\StgSharp.Model.csproj", "{D9538DE0-EE4C-4183-86D6-7DFC08A7BDFB}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Mathematics", "src\Nitload.Mathematics\Nitload.Mathematics.csproj", "{9946599F-4D34-440F-840D-F9443D5AEFAA}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Mathematics", "src\StgSharp.Mathematics\StgSharp.Mathematics.csproj", "{9946599F-4D34-440F-840D-F9443D5AEFAA}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.RegularAnalysis", "src\Nitload.RegularAnalysis\Nitload.RegularAnalysis.csproj", "{46339874-C6B8-4361-997E-2E30387E51F9}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.RegularAnalysis", "src\StgSharp.RegularAnalysis\StgSharp.RegularAnalysis.csproj", "{46339874-C6B8-4361-997E-2E30387E51F9}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitload.Graphics", "src\Nitload.Graphics\Nitload.Graphics.csproj", "{80CD3DDE-0642-451D-82DF-0DE422FC6E34}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp.Graphics", "src\StgSharp.Graphics\StgSharp.Graphics.csproj", "{80CD3DDE-0642-451D-82DF-0DE422FC6E34}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nitload.UserInterface", "src\Nitload.UserInterface\Nitload.UserInterface.csproj", "{E5F7BEEE-D666-F614-7FF7-55C11C810254}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StgSharp.UserInterface", "src\StgSharp.UserInterface\StgSharp.UserInterface.csproj", "{E5F7BEEE-D666-F614-7FF7-55C11C810254}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
+4 -4
View File
@@ -147,7 +147,7 @@ StgSharp is currently in development and requires compilation from source. **NuG
2. **Build the native library (recommended toolchain)**: 2. **Build the native library (recommended toolchain)**:
```bash ```bash
cmake --preset clang-release -S src/StgSharp.Native cmake --preset clang-release -S src/Nitload.Native
cmake --build cmake_build/clang-release cmake --build cmake_build/clang-release
``` ```
@@ -156,7 +156,7 @@ StgSharp is currently in development and requires compilation from source. **NuG
3. **Build the managed projects**: 3. **Build the managed projects**:
```bash ```bash
dotnet build StgSharp.sln dotnet build Nitload.sln
``` ```
Managed builds copy an existing native binary into their output directory. They do not invoke CMake automatically, so build `StgSharp.Native` first when native functionality is required. Managed builds copy an existing native binary into their output directory. They do not invoke CMake automatically, so build `StgSharp.Native` first when native functionality is required.
@@ -226,8 +226,8 @@ allocator.Free(handle);
### Technical Documentation ### Technical Documentation
- [TLSF Allocator](doc/InroductionToTLSF.md) - Arena layout, allocation behavior, and benchmark methodology - [TLSF Allocator](doc/InroductionToTLSF.md) - Arena layout, allocation behavior, and benchmark methodology
- [Native Library Build](src/StgSharp.Native/README.md) - Native build and source-layout notes - [Native Library Build](src/Nitload.Native/README.md) - Native build and source-layout notes
- [Native Library Naming](src/StgSharp.Native/naming.md) - Native library file naming conventions - [Native Library Naming](src/Nitload.Native/naming.md) - Native library file naming conventions
## Contributing ## Contributing
-6
View File
@@ -1,6 +0,0 @@
[
{
"Name": "新建配置文件",
"Projects": []
}
]
@@ -6,14 +6,14 @@
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes;
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Tlsf = StgSharp.HighPerformance.Memory.TwoLayerSegregatedFitAllocator; using Tlsf = Nitload.Common.HighPerformance.Memory.TwoLayerSegregatedFitAllocator;
namespace StgSharp.Benchmark namespace Nitload.Benchmark
{ {
[MemoryDiagnoser] [MemoryDiagnoser]
public class TlsfAllocatorBench public class TlsfAllocatorBench
@@ -10,12 +10,12 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\StgSharp.Common\StgSharp.Common.csproj" Properties="DisablePostBuildCopy=true" /> <ProjectReference Include="..\Nitload.Common\Nitload.Common.csproj" Properties="DisablePostBuildCopy=true" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<NativeArtifacts Include="$(SolutionDir)build\**\StgSharp.Native*.dll" /> <NativeArtifacts Include="$(SolutionDir)build\**\Nitload.Native*.dll" />
<NativeArtifacts Include="$(SolutionDir)build\**\StgSharp.Native*.pdb" /> <NativeArtifacts Include="$(SolutionDir)build\**\Nitload.Native*.pdb" />
</ItemGroup> </ItemGroup>
<Target Name="CopyNativeArtifacts" AfterTargets="Build" Condition="'$(DisableNativeCopy)'!='true'"> <Target Name="CopyNativeArtifacts" AfterTargets="Build" Condition="'$(DisableNativeCopy)'!='true'">
@@ -10,7 +10,7 @@ using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Loggers; using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Running; using BenchmarkDotNet.Running;
using BenchmarkDotNet.Toolchains.InProcess.Emit; using BenchmarkDotNet.Toolchains.InProcess.Emit;
using StgSharp.Benchmark; using Nitload.Benchmark;
IConfig config = ManualConfig.Create(DefaultConfig.Instance) IConfig config = ManualConfig.Create(DefaultConfig.Instance)
.AddLogger(ConsoleLogger.Default) .AddLogger(ConsoleLogger.Default)
@@ -6,12 +6,12 @@
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes;
using StgSharp.Collections; using Nitload.Common.Collections;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace StgSharp.Benchmark namespace Nitload.Benchmark
{ {
/// <summary> /// <summary>
/// Benchmark comparing SwissTable against <see cref="Dictionary{TKey, TValue}" /> under /// Benchmark comparing SwissTable against <see cref="Dictionary{TKey, TValue}" /> under
@@ -11,7 +11,7 @@ using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public sealed class BidirectionalDictionary<TFirst, TSecond> : IBidirectionalDictionary<TFirst, TSecond> public sealed class BidirectionalDictionary<TFirst, TSecond> : IBidirectionalDictionary<TFirst, TSecond>
where TFirst : notnull where TFirst : notnull
@@ -10,7 +10,7 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public sealed class CapacityFixedBag<T> : IEnumerable<T> public sealed class CapacityFixedBag<T> : IEnumerable<T>
{ {
@@ -10,7 +10,7 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public static class CapacityFixedListBuilder public static class CapacityFixedListBuilder
{ {
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Threading; using System.Threading;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
[CollectionBuilder(typeof(CapacityFixedStackBuilder), nameof(CapacityFixedStackBuilder.Create))] [CollectionBuilder(typeof(CapacityFixedStackBuilder), nameof(CapacityFixedStackBuilder.Create))]
public class CapacityFixedStack<T> : IEnumerable<T> public class CapacityFixedStack<T> : IEnumerable<T>
@@ -11,7 +11,7 @@ using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
/// <summary> /// <summary>
/// Lock-free, fixed-capacity stack implemented on top of an array using atomic index /// 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.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public class ConcurrentFlexibleArray<T>( public class ConcurrentFlexibleArray<T>(
int capacity = 4 int capacity = 4
@@ -7,7 +7,7 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public interface IBidirectionalDictionary<TFirst, TSecond> : IDictionary<TFirst, TSecond> public interface IBidirectionalDictionary<TFirst, TSecond> : IDictionary<TFirst, TSecond>
{ {
@@ -9,7 +9,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public static class LinearBagBuilder public static class LinearBagBuilder
{ {
@@ -14,7 +14,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml.Serialization; using System.Xml.Serialization;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
/// <summary> /// <summary>
/// Part of a collection. This contains a direct reference to _origin collection, so all /// 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;
using System.Collections.Generic; using System.Collections.Generic;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public class RandomAccessibleStack<T> : IEnumerable<T> public class RandomAccessibleStack<T> : IEnumerable<T>
{ {
@@ -10,7 +10,7 @@ using System.Numerics;
using System.Runtime.Intrinsics; using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics.X86;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public partial class SwissTable public partial class SwissTable
{ {
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
using System.Runtime.Intrinsics.Arm; using System.Runtime.Intrinsics.Arm;
using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics.X86;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
/// <summary> /// <summary>
/// ///
@@ -12,7 +12,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
/// <summary> /// <summary>
/// Zero-overhead view over a contiguous region of unmanaged memory. Does not own the memory — /// 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.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Collections namespace Nitload.Common.Collections
{ {
public unsafe class UnmanagedStack<T>( public unsafe class UnmanagedStack<T>(
T* address, T* address,
@@ -16,7 +16,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
namespace StgSharp namespace Nitload
{ {
public static class Dialogue public static class Dialogue
{ {
@@ -92,7 +92,7 @@ namespace StgSharp
} }
string consoleRoute = Path.Combine( string consoleRoute = Path.Combine(
path, @"StgSharp.TerminalDialogue", $@"StgSharp.TerminalDialogue{exeName}"); path, @"Nitload.TerminalDialogue", $@"Nitload.TerminalDialogue{exeName}");
_dialogueProcessInfo = new ProcessStartInfo _dialogueProcessInfo = new ProcessStartInfo
{ {
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp namespace Nitload
{ {
public class UniformEmptyReferenceException : Exception public class UniformEmptyReferenceException : Exception
{ {
@@ -14,7 +14,7 @@ using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp namespace Nitload
{ {
public static unsafe partial class World public static unsafe partial class World
{ {
@@ -9,7 +9,7 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
namespace StgSharp namespace Nitload
{ {
/// <summary> /// <summary>
/// Represents a statically activated module that can be registered and initialized as part of /// Represents a statically activated module that can be registered and initialized as part of
@@ -5,15 +5,15 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance; using Nitload.Common.HighPerformance;
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using StgSharp.Timing; using Nitload.Common.Timing;
using System; using System;
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace StgSharp namespace Nitload
{ {
internal enum GraphicAPI : byte internal enum GraphicAPI : byte
{ {
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
global using StgSharp.Internal; global using Nitload.Common.Internal;
global using System; global using System;
global using System.Runtime.CompilerServices; global using System.Runtime.CompilerServices;
global using System.Threading; global using System.Threading;
[assembly: InternalsVisibleTo("StgSharp.HighPerformance")] [assembly: InternalsVisibleTo("Nitload.Common.HighPerformance")]
[assembly: InternalsVisibleTo("StgSharp.RegularAnalysis")] [assembly: InternalsVisibleTo("Nitload.RegularAnalysis")]
[assembly: InternalsVisibleTo("StgSharp.Graphics")] [assembly: InternalsVisibleTo("Nitload.Graphics")]
[assembly: InternalsVisibleTo("StgSharp.Mathematics")] [assembly: InternalsVisibleTo("Nitload.Mathematics")]
[assembly: InternalsVisibleTo("StgSharpDebug")] [assembly: InternalsVisibleTo("StgSharpDebug")]
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance namespace Nitload.Common.HighPerformance
{ {
public class IdMultiplexer { } public class IdMultiplexer { }
} }
@@ -10,7 +10,7 @@ using System.Buffers;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
[CollectionBuilder(typeof(BufferStackBuilder), nameof(BufferStackBuilder.Create))] [CollectionBuilder(typeof(BufferStackBuilder), nameof(BufferStackBuilder.Create))]
public unsafe class BufferStack<T> : IDisposable where T : unmanaged public unsafe class BufferStack<T> : IDisposable where T : unmanaged
@@ -94,22 +94,19 @@ namespace StgSharp.HighPerformance.Memory
} }
/// <summary> /// <summary>
/// Fills the stack in place via a caller-supplied callback, mirroring /// Fills the stack in place via a caller-supplied callback, mirroring <c>
/// <c>CapacityFixedStack&lt;T&gt;.FillRange</c>. /// CapacityFixedStack&lt;T&gt;.FillRange </c>.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Preferred over building a temporary span and handing it to /// Preferred over building a temporary span and handing it to <see
/// <see cref="BufferStackBuilder.Create{T}(ReadOnlySpan{T})"/>: /// cref="BufferStackBuilder.Create{T}(ReadOnlySpan{T})" />: <list type="bullet"> ///
/// <list type="bullet"> /// <item> The caller no longer needs a scratch buffer at all — the /// callback writes
/// <item>The caller no longer needs a scratch buffer at all — the /// straight into this stack's native storage, so there /// is no <c> stackalloc </c> to
/// callback writes straight into this stack's native storage, so there /// size and no copy afterwards. </item> /// <item><c> Span&lt;T&gt; </c> does not
/// is no <c>stackalloc</c> to size and no copy afterwards.</item> /// implicitly convert to /// <c> ReadOnlySpan&lt;T&gt; </c> in a way that participates in
/// <item><c>Span&lt;T&gt;</c> does not implicitly convert to /// generic /// type inference before C# 14, so <c> Create(span) </c> fails with ///
/// <c>ReadOnlySpan&lt;T&gt;</c> in a way that participates in generic /// CS0411 on older compilers. Passing the element type through the /// enclosing instance
/// type inference before C# 14, so <c>Create(span)</c> fails with /// sidesteps inference entirely. </item> ///</list>
/// CS0411 on older compilers. Passing the element type through the
/// enclosing instance sidesteps inference entirely.</item>
/// </list>
/// </remarks> /// </remarks>
internal unsafe void FillRange( internal unsafe void FillRange(
SpanAction<T, nuint> filling, SpanAction<T, nuint> filling,
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Threading; using Nitload.Threading;
using System; using System;
using System.Buffers; using System.Buffers;
@@ -14,7 +14,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public static class BufferStackBuilder public static class BufferStackBuilder
{ {
@@ -5,10 +5,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public partial class L4 public partial class L4
{ {
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
/**/ /**/
public partial class L4 public partial class L4
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public partial class L4 public partial class L4
{ {
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
#pragma warning disable CA1032 // Implement standard exception constructors #pragma warning disable CA1032 // Implement standard exception constructors
@@ -5,8 +5,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Collections; using Nitload.Common.Collections;
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
@@ -14,7 +14,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public partial class L4 public partial class L4
{ {
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
[Flags] [Flags]
public enum PredictResult public enum PredictResult
@@ -8,7 +8,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.Numerics; using System.Numerics;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public unsafe partial class L4 public unsafe partial class L4
{ {
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public partial class L4 public partial class L4
{ {
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Collections; using Nitload.Common.Collections;
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System.Data; using System.Data;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public sealed unsafe partial class L4 : IDisposable public sealed unsafe partial class L4 : IDisposable
{ {
@@ -14,7 +14,7 @@ using System.Numerics;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
#pragma warning disable CA2225 #pragma warning disable CA2225
@@ -8,7 +8,7 @@
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public unsafe struct SlabAllocationHandle<T> : IDisposable where T : unmanaged public unsafe struct SlabAllocationHandle<T> : IDisposable where T : unmanaged
{ {
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Threading; using Nitload.Threading;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
internal sealed unsafe class ChunkedSlabAllocator<T> : SlabAllocator<T> where T : unmanaged internal sealed unsafe class ChunkedSlabAllocator<T> : SlabAllocator<T> where T : unmanaged
{ {
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Threading; using Nitload.Threading;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -16,7 +16,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
internal sealed unsafe class ConcurrentChunkedSlabAllocator<T> : SlabAllocator<T> internal sealed unsafe class ConcurrentChunkedSlabAllocator<T> : SlabAllocator<T>
where T : unmanaged where T : unmanaged
@@ -5,9 +5,9 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Collections; using Nitload.Common.Collections;
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using StgSharp.Threading; using Nitload.Threading;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
internal unsafe class FixedSlabAllocator<T> : SlabAllocator<T> where T : unmanaged internal unsafe class FixedSlabAllocator<T> : SlabAllocator<T> where T : unmanaged
{ {
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Threading; using Nitload.Threading;
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public sealed unsafe class ConcurrentSequentialSlabAllocator<T> : SlabAllocator<T> public sealed unsafe class ConcurrentSequentialSlabAllocator<T> : SlabAllocator<T>
where T : unmanaged where T : unmanaged
@@ -5,10 +5,10 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using System; using System;
namespace StgSharp.HighPerformance.Memory namespace Nitload.Common.HighPerformance.Memory
{ {
public static class SlabAllocator public static class SlabAllocator
{ {
@@ -5,8 +5,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@@ -18,9 +18,9 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml; 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 public unsafe class TwoLayerSegregatedFitAllocator : IDisposable
{ {
@@ -12,7 +12,7 @@ using System.Numerics;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
/// <summary> /// <summary>
/// Abstraction for a wide SIMD register or equivalent packed numeric storage. Provides raw /// 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.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
public readonly struct LogicalCore public readonly struct LogicalCore
{ {
@@ -16,7 +16,7 @@ using System.Runtime.Intrinsics.X86;
using System.Text; using System.Text;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
[StructLayout(LayoutKind.Explicit, Pack = 16)] [StructLayout(LayoutKind.Explicit, Pack = 16)]
public unsafe struct M128 : IRegisterPresentation public unsafe struct M128 : IRegisterPresentation
@@ -15,7 +15,7 @@ using System.Runtime.Intrinsics;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
[StructLayout(LayoutKind.Explicit, Pack = 16)] [StructLayout(LayoutKind.Explicit, Pack = 16)]
public unsafe struct M256 : IRegisterPresentation public unsafe struct M256 : IRegisterPresentation
@@ -15,7 +15,7 @@ using System.Runtime.Intrinsics;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 64)] [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 64)]
public unsafe struct M512 : IRegisterPresentation public unsafe struct M512 : IRegisterPresentation
@@ -10,7 +10,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Runtime.Intrinsics; using System.Runtime.Intrinsics;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
[StructLayout(LayoutKind.Explicit, Pack = 8)] [StructLayout(LayoutKind.Explicit, Pack = 8)]
public unsafe struct M64 : IRegisterPresentation public unsafe struct M64 : IRegisterPresentation
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics.Contracts; using System.Diagnostics.Contracts;
@@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
public static partial class Numa public static partial class Numa
{ {
@@ -12,7 +12,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.HighPerformance.ProcessorAbstraction namespace Nitload.Common.HighPerformance.ProcessorAbstraction
{ {
public class NumaNode public class NumaNode
{ {
@@ -10,7 +10,7 @@ using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace StgSharp.Internal namespace Nitload.Common.Internal
{ {
internal static unsafe partial class DefaultLog internal static unsafe partial class DefaultLog
{ {
@@ -11,13 +11,13 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Internal namespace Nitload.Common.Internal
{ {
internal static unsafe partial class Native internal static unsafe partial class Native
{ {
internal const string LibName = internal const string LibName =
"StgSharp.Native"; "Nitload.Native";
internal const string LogPath = internal const string LogPath =
"SS_error.log"; "SS_error.log";
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp namespace Nitload
{ {
public enum LogType public enum LogType
{ {
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.PipeLine; using Nitload.Common.PipeLine;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public class CrossFrameOperation : IConvertableToPipelineNode public class CrossFrameOperation : IConvertableToPipelineNode
{ {
@@ -10,7 +10,7 @@ using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Text; using System.Text;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public delegate void PipelineNodeOperation( public delegate void PipelineNodeOperation(
in Dictionary<string, PipelineNodeInPort> input, in Dictionary<string, PipelineNodeInPort> input,
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Threading; using Nitload.Threading;
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
@@ -18,7 +18,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public static class PipeLineRunner public static class PipeLineRunner
{ {
@@ -13,7 +13,7 @@ using System.Net.Http;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public static class PipelineMarshal public static class PipelineMarshal
{ {
@@ -16,7 +16,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
/// <summary> /// <summary>
/// ///
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public abstract record class PipelineNodeLabel public abstract record class PipelineNodeLabel
{ {
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public class PipelineNodeInPort public class PipelineNodeInPort
{ {
@@ -14,7 +14,7 @@ using System.Threading;
using System.Xml; using System.Xml;
using System.Xml.Linq; using System.Xml.Linq;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
/// <summary> /// <summary>
/// A sets of complex logic designed for running in multi threads environment. Warning: do not /// 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;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
public class PipelineConnector public class PipelineConnector
{ {
@@ -14,7 +14,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.PipeLine namespace Nitload.Common.PipeLine
{ {
internal sealed class BeginningNode : PipelineNode internal sealed class BeginningNode : PipelineNode
{ {
@@ -12,7 +12,7 @@ using System.Numerics;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.State namespace Nitload.State
{ {
public interface ISimpleStateMachine<TStateNode, TStateLabel, TStateContext> public interface ISimpleStateMachine<TStateNode, TStateLabel, TStateContext>
where TStateNode : SimpleStateMachineNode<TStateNode, TStateLabel, TStateContext> where TStateNode : SimpleStateMachineNode<TStateNode, TStateLabel, TStateContext>
@@ -13,7 +13,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.State namespace Nitload.State
{ {
public abstract class SimpleStateMachineNode<TSelf, TLabel, TStateContext> public abstract class SimpleStateMachineNode<TSelf, TLabel, TStateContext>
where TSelf : SimpleStateMachineNode<TSelf, TLabel, TStateContext> where TSelf : SimpleStateMachineNode<TSelf, TLabel, TStateContext>
@@ -11,7 +11,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.State namespace Nitload.State
{ {
public abstract class StateContext { } public abstract class StateContext { }
} }
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Threading namespace Nitload.Threading
{ {
/// <summary> /// <summary>
/// Provide a lock for managing concurrent access to a buffer that can be expanded and use a /// 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;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Threading namespace Nitload.Threading
{ {
public class CancellableTask : IDisposable public class CancellableTask : IDisposable
{ {
@@ -8,7 +8,7 @@
using System; using System;
using System.Threading; using System.Threading;
namespace StgSharp.Threading namespace Nitload.Threading
{ {
/// <summary> /// <summary>
/// A single-consumer bell/signal primitive. /// A single-consumer bell/signal primitive.
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace StgSharp.Threading namespace Nitload.Threading
{ {
public static partial class ThreadHelper public static partial class ThreadHelper
{ {
@@ -9,7 +9,7 @@ using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
namespace StgSharp.Threading namespace Nitload.Threading
{ {
/// <summary> /// <summary>
/// A counting semaphore with adjustable maximum capacity at runtime. Implemented using one or /// A counting semaphore with adjustable maximum capacity at runtime. Implemented using one or
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Collections; using Nitload.Common.Collections;
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using StgSharp.Timing; using Nitload.Common.Timing;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Threading; using System.Threading;
namespace StgSharp namespace Nitload
{ {
public static partial class World public static partial class World
{ {
@@ -5,11 +5,11 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Timing; using Nitload.Common.Timing;
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace StgSharp.Timing namespace Nitload.Common.Timing
{ {
public abstract class TimeSequence public abstract class TimeSequence
{ {
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp; using Nitload;
using StgSharp.HighPerformance.ProcessorAbstraction; using Nitload.Common.HighPerformance.ProcessorAbstraction;
using System; using System;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
namespace StgSharp.Timing namespace Nitload.Common.Timing
{ {
public class TimeSourceStartupConfiguration( public class TimeSourceStartupConfiguration(
nuint bindedNumaNode = 0, nuint bindedNumaNode = 0,
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.HighPerformance.Memory; using Nitload.Common.HighPerformance.Memory;
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
@@ -13,7 +13,7 @@ using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Timing namespace Nitload.Common.Timing
{ {
public partial class TimeSpanProvider public partial class TimeSpanProvider
{ {
@@ -5,12 +5,12 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Timing; using Nitload.Common.Timing;
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
namespace StgSharp.Timing namespace Nitload.Common.Timing
{ {
/// <summary> /// <summary>
/// TimeSpanProvider: uses a bound TimeSequence and TimeSourceProviderBase to publish span /// TimeSpanProvider: uses a bound TimeSequence and TimeSourceProviderBase to publish span
@@ -9,7 +9,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
public interface IImageProvider public interface IImageProvider
{ {
@@ -10,7 +10,7 @@ using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Text; using System.Text;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
public static class ImageHelper public static class ImageHelper
{ {
@@ -5,15 +5,15 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Graphics; using Nitload.Graphics;
using StgSharp.Graphics.OpenGL; using Nitload.Graphics.OpenGL;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
/// <summary> /// <summary>
/// Interface of all kinds OpenGL BufferHandle objects /// Interface of all kinds OpenGL BufferHandle objects
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp; using Nitload;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@@ -13,7 +13,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
public class GraphicModuel : IStaticModule public class GraphicModuel : IStaticModule
{ {
@@ -5,12 +5,12 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Internal; using Nitload.Common.Internal;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
internal static unsafe partial class GraphicFramework internal static unsafe partial class GraphicFramework
{ {
@@ -5,12 +5,12 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL; using Nitload.Graphics.OpenGL;
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
public class Image : IImageProvider public class Image : IImageProvider
{ {
@@ -5,14 +5,14 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL; using Nitload.Graphics.OpenGL;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
namespace StgSharp.Graphics namespace Nitload.Graphics
{ {
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)] [UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
public delegate IntPtr ImageLoader( public delegate IntPtr ImageLoader(
@@ -5,8 +5,8 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Collections; using Nitload.Common.Collections;
using StgSharp.Graphics; using Nitload.Graphics;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
@@ -16,7 +16,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Graphics.OpenGL namespace Nitload.Graphics.OpenGL
{ {
/// <summary> /// <summary>
/// A collection of a sets of OpenGL textures. The collection can automatically select one of /// A collection of a sets of OpenGL textures. The collection can automatically select one of
@@ -5,13 +5,13 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL; using Nitload.Graphics.OpenGL;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace StgSharp.Graphics.OpenGL namespace Nitload.Graphics.OpenGL
{ {
public abstract class GlBufferObjectBase : BufferObjectBase public abstract class GlBufferObjectBase : BufferObjectBase
{ {
@@ -1,12 +1,12 @@
// <auto-generated> // <auto-generated>
// Generated by StgSharp.GenerateGL on 2026-08-25 09:22:55Z // Generated by Nitload.GenerateGL on 2026-08-25 09:22:55Z
// Command availability history // Command availability history
// </auto-generated> // </auto-generated>
using System; using System;
using System.Collections.Frozen; using System.Collections.Frozen;
using System.Collections.Generic; using System.Collections.Generic;
namespace StgSharp.Graphics.OpenGL namespace Nitload.Graphics.OpenGL
{ {
internal enum CommandHistoryAction { Added, Removed } internal enum CommandHistoryAction { Added, Removed }
@@ -5,7 +5,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
using StgSharp.Graphics.OpenGL; using Nitload.Graphics.OpenGL;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@@ -13,7 +13,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace StgSharp.Graphics.ShaderEdit namespace Nitload.Graphics.ShaderEdit
{ {
public interface IglConvertable public interface IglConvertable
{ {

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