Skip to content

Commit 68ec808

Browse files
[Project Management] Add support for NativeAOT x86_64 instruction level sets;
1 parent f0559bc commit 68ec808

File tree

6 files changed

+265
-184
lines changed

6 files changed

+265
-184
lines changed

Engine/Staple.Core/AppSettings/AppSettings.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,18 @@ public class AppSettings
175175
[Key(26)]
176176
public bool usePhysicsInterpolation = false;
177177

178+
/// <summary>
179+
/// Whether to override the x64 Native Instruction Set
180+
/// </summary>
181+
[Key(27)]
182+
public bool overrideNativeInstructionSetX64 = false;
183+
184+
/// <summary>
185+
/// x64 Instruction Level
186+
/// </summary>
187+
[Key(28)]
188+
public X64InstructionLevel x64InstructionLevel = X64InstructionLevel.x86_64v3;
189+
178190
[IgnoreMember]
179191
public static AppSettings Default
180192
{
@@ -280,6 +292,7 @@ internal AppSettings Clone()
280292
[JsonSourceGenerationOptions(IncludeFields = true)]
281293
[JsonSerializable(typeof(List<string>))]
282294
[JsonSerializable(typeof(Dictionary<AppPlatform, List<RendererType>>))]
295+
[JsonSerializable(typeof(JsonStringEnumConverter<X64InstructionLevel>))]
283296
[JsonSerializable(typeof(JsonStringEnumConverter<AppProfilingMode>))]
284297
[JsonSerializable(typeof(JsonStringEnumConverter<AppPlatform>))]
285298
[JsonSerializable(typeof(JsonStringEnumConverter<RendererType>))]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Staple;
2+
3+
public enum X64InstructionLevel
4+
{
5+
x86_64v1,
6+
x86_64v2,
7+
x86_64v3,
8+
x86_64v4,
9+
}

0 commit comments

Comments
 (0)