MulAvailable
This commit is contained in:
@@ -1 +0,0 @@
|
||||
D:/NitloadIndustry/研究项目/1-Flagship/TH2020/ProjectFile/源代码/StgSharp/Control
|
||||
@@ -1,175 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="ExpLinearExpressionTest.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Script;
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Schema;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal class ExpTestFuncSource : ExpFunctionSource
|
||||
{
|
||||
|
||||
public ExpTestFuncSource( string name, ScriptSourceTransmitter source )
|
||||
: base( name, source )
|
||||
{
|
||||
LocalVariables.Add(
|
||||
"a", new ExpIntNode( new Token( "a", 0, 0, TokenFlag.Number ), 1, false ) );
|
||||
LocalVariables.Add(
|
||||
"b", new ExpIntNode( new Token( "b", 0, 0, TokenFlag.Number ), 1, false ) );
|
||||
LocalVariables.Add(
|
||||
"c", new ExpIntNode( new Token( "c", 0, 0, TokenFlag.Number ), 1, false ) );
|
||||
LocalVariables.Add(
|
||||
"d", new ExpIntNode( new Token( "d", 0, 0, TokenFlag.Number ), 1, false ) );
|
||||
LocalVariables.Add(
|
||||
"e", new ExpIntNode( new Token( "e", 0, 0, TokenFlag.Number ), 1, false ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal class TestSchema : ExpSchema
|
||||
{
|
||||
|
||||
internal ExpTestFuncSource source;
|
||||
|
||||
public TestSchema( ExpTestFuncSource testType )
|
||||
{
|
||||
source = testType;
|
||||
}
|
||||
|
||||
public override void LoadFromSource( ExpSchemaSource source )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public override bool TryGetConst( string name, out ExpElementInstance c )
|
||||
{
|
||||
c = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetEntity( string name, out ExpEntitySource e )
|
||||
{
|
||||
e = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetFunction( string name, out ExpFunctionSource f )
|
||||
{
|
||||
if( name == "TestFunc" )
|
||||
{
|
||||
f = source;
|
||||
return true;
|
||||
}
|
||||
f = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetProcedure( string name, out ExpProcedureSource p )
|
||||
{
|
||||
p = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetRule( string name, out ExpRuleSource r )
|
||||
{
|
||||
r = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetSchemaInclude( string name, out ExpSchema include )
|
||||
{
|
||||
include = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryGetType( string name, out ExpTypeSource t )
|
||||
{
|
||||
t = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static partial class Program
|
||||
{
|
||||
|
||||
private const string code = """
|
||||
a := ( b * E + d * 2 ) * d;
|
||||
(**)
|
||||
a := b + (c + d) - a;
|
||||
IF a = b THEN
|
||||
a := a * a;
|
||||
ELSE
|
||||
a := c * a;
|
||||
END_IF
|
||||
(**)
|
||||
CASE a OF
|
||||
1 : a := 1 + e ;
|
||||
OTHERWISE : a:=a;
|
||||
END_CASE
|
||||
REPEAT a := 1 TO 10;
|
||||
b := 10;
|
||||
END_REPEAT
|
||||
""";
|
||||
|
||||
public static void ExpLinearExpressionTest()
|
||||
{
|
||||
ExpressCompile.InitCompile();
|
||||
ScriptSourceTransmitter transmitter = new ScriptSourceTransmitter( "END", 0 );
|
||||
|
||||
foreach( string line in code.Split(
|
||||
Environment.NewLine, StringSplitOptions.RemoveEmptyEntries ) ) {
|
||||
transmitter.WriteLine( line );
|
||||
}
|
||||
transmitter.EndWriting();
|
||||
ExpTokenReader reader = new ExpTokenReader( transmitter );
|
||||
/**/
|
||||
ExpTestFuncSource func = new ExpTestFuncSource( "test", transmitter );
|
||||
TestSchema testSchema = new TestSchema( func );
|
||||
ExpSyntaxAnalyzer generator = new ExpSyntaxAnalyzer( testSchema, func );
|
||||
/**/
|
||||
|
||||
while( reader.TryReadToken( out Token t ) )
|
||||
{
|
||||
Console.WriteLine( t.Value );
|
||||
generator.AppendToken( t );
|
||||
}
|
||||
Console.WriteLine( "OK" );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
// file="HlsfStressTest"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload
|
||||
// Copyright (c) Nitload. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in all
|
||||
// copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
using StgSharp.HighPerformance.Memory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal static class HlsfStressTest
|
||||
{
|
||||
|
||||
private const uint MaxAllocSize = 32 * 1024 * 1024; // 32MB documented cap
|
||||
|
||||
// Allow overriding arena size via env HLSF_ARENA_MB (must be >=64MB)
|
||||
private static readonly ulong ArenaBytes = Environment.GetEnvironmentVariable("HLSF_ARENA_MB") is string mbStr &&
|
||||
int.TryParse(mbStr, out int mb) &&
|
||||
mb >= 64 ?
|
||||
(ulong)mb * 1024UL * 1024UL :
|
||||
3UL * 1024UL * 1024UL * 1024UL; // lower default to 512MB
|
||||
|
||||
private static readonly uint[] SizeSweep = {
|
||||
64, 128, 192, 256, 512, 768, 1024, 2048, 3072, 4096, 8192, 12288, 16384, 32768, 49152, 65536, 131072, 196608, 262144, 524288, 786432, 1_048_576, 2_097_152, 3_145_728, 4_194_304, 8_388_608, 12_582_912, 16_777_216, 25_165_824, 33_554_432
|
||||
};
|
||||
|
||||
public static unsafe void Run()
|
||||
{
|
||||
Console.WriteLine("=== HLSF Allocator Single-Thread Performance Benchmark ===");
|
||||
Console.WriteLine($"Arena size: {ArenaBytes / (1024 * 1024)} MiB (env override: HLSF_ARENA_MB)");
|
||||
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("[1] Allocation throughput (no touch)");
|
||||
using (HybridLayerSegregatedFitAllocator allocator = new HybridLayerSegregatedFitAllocator((nuint)ArenaBytes))
|
||||
{
|
||||
Warmup(allocator);
|
||||
|
||||
foreach (uint sz in SizeSweep)
|
||||
{
|
||||
uint size = sz > MaxAllocSize ? MaxAllocSize : sz;
|
||||
BenchAllocThroughput(allocator, size, touch:false);
|
||||
allocator.Collect();
|
||||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
}
|
||||
}
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("[2] Allocation throughput (touch first byte)");
|
||||
using (HybridLayerSegregatedFitAllocator allocator = new HybridLayerSegregatedFitAllocator((nuint)ArenaBytes))
|
||||
{
|
||||
Warmup(allocator);
|
||||
|
||||
foreach (uint sz in SizeSweep)
|
||||
{
|
||||
uint size = sz > MaxAllocSize ? MaxAllocSize : sz;
|
||||
BenchAllocThroughput(allocator, size, touch:true);
|
||||
allocator.Collect();
|
||||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
}
|
||||
}
|
||||
Console.WriteLine();
|
||||
using (HybridLayerSegregatedFitAllocator allocator = new HybridLayerSegregatedFitAllocator((nuint)ArenaBytes))
|
||||
{
|
||||
Warmup(allocator);
|
||||
|
||||
Console.WriteLine("[3] Free throughput after pre-allocation (256k blocks of 1KB)");
|
||||
BenchFreeThroughput(allocator, 256 * 1024, 1024);
|
||||
allocator.Collect();
|
||||
}
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("[4] Alloc+Immediate Free pairs (5,000,000 x 256B)");
|
||||
using (HybridLayerSegregatedFitAllocator allocator = new HybridLayerSegregatedFitAllocator((nuint)ArenaBytes))
|
||||
{
|
||||
Warmup(allocator);
|
||||
|
||||
BenchAllocFreePairs(allocator, 5_000_000, 256);
|
||||
allocator.Collect();
|
||||
}
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("[5] Fragmentation cycle (allocate ~1024MB random, free half, reallocate)");
|
||||
using (HybridLayerSegregatedFitAllocator allocator = new HybridLayerSegregatedFitAllocator((nuint)ArenaBytes))
|
||||
{
|
||||
Warmup(allocator);
|
||||
|
||||
BenchFragmentationCycle(allocator, 512); // target within 500MB arena
|
||||
allocator.Collect();
|
||||
}
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("=== Benchmark Complete ===");
|
||||
}
|
||||
|
||||
private static void BenchAllocFreePairs(
|
||||
HybridLayerSegregatedFitAllocator allocator,
|
||||
int pairs,
|
||||
uint blockSize)
|
||||
{
|
||||
Stopwatch sw = Stopwatch.StartNew();
|
||||
for (int i = 0; i < pairs; i++)
|
||||
{
|
||||
HybridLayerSegregatedFitAllocationHandle h = allocator.Alloc(blockSize);
|
||||
allocator.Free(h);
|
||||
}
|
||||
sw.Stop();
|
||||
double opsPerSec = pairs / sw.Elapsed.TotalSeconds;
|
||||
|
||||
// Left align and widen columns
|
||||
Console.WriteLine($" size={Fmt(blockSize),-12} pairs={pairs,-12} alloc+free/s={opsPerSec,-16:0.0}");
|
||||
}
|
||||
|
||||
private static void BenchAllocThroughput(
|
||||
HybridLayerSegregatedFitAllocator allocator,
|
||||
uint blockSize,
|
||||
bool touch)
|
||||
{
|
||||
ulong budget = ArenaBytes / 2; // use half arena for test
|
||||
if (blockSize == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
long ops = (long)(budget / blockSize);
|
||||
ops = Math.Min(ops, blockSize >= (4 * 1024 * 1024) ? 2048 : 2_000_000);
|
||||
if (ops <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<HybridLayerSegregatedFitAllocationHandle> list = new List<HybridLayerSegregatedFitAllocationHandle>((int)ops);
|
||||
Stopwatch sw = Stopwatch.StartNew();
|
||||
for (long i = 0; i < ops; i++)
|
||||
{
|
||||
HybridLayerSegregatedFitAllocationHandle h = allocator.Alloc(blockSize);
|
||||
if (touch)
|
||||
{
|
||||
Span<byte> span = h.BufferHandle;
|
||||
if (!span.IsEmpty) {
|
||||
span[0] = (byte)(i & 0xFF);
|
||||
}
|
||||
}
|
||||
list.Add(h);
|
||||
|
||||
// Console.WriteLine(i);
|
||||
}
|
||||
sw.Stop();
|
||||
double allocOpsPerSec = ops / sw.Elapsed.TotalSeconds;
|
||||
foreach (HybridLayerSegregatedFitAllocationHandle h in list) {
|
||||
allocator.Free(h);
|
||||
}
|
||||
|
||||
// Left align and widen columns
|
||||
Console.WriteLine($" size={Fmt(blockSize),-12} ops={ops,-12} alloc/s={allocOpsPerSec,-16:0.0} touch={touch,-5}");
|
||||
}
|
||||
|
||||
private static void BenchFragmentationCycle(
|
||||
HybridLayerSegregatedFitAllocator allocator,
|
||||
int targetMiB)
|
||||
{
|
||||
int targetBytes = targetMiB * 1024 * 1024;
|
||||
Random rng = new Random(123);
|
||||
List<HybridLayerSegregatedFitAllocationHandle> live = new List<HybridLayerSegregatedFitAllocationHandle>(128 * 1024);
|
||||
long allocated = 0;
|
||||
Stopwatch swA = Stopwatch.StartNew();
|
||||
while (allocated < targetBytes)
|
||||
{
|
||||
uint sz = PickSize(rng);
|
||||
HybridLayerSegregatedFitAllocationHandle h = allocator.Alloc(sz);
|
||||
live.Add(h);
|
||||
allocated += sz;
|
||||
}
|
||||
swA.Stop();
|
||||
Console.WriteLine($" phaseA alloc {targetMiB}MB in {swA.Elapsed.TotalSeconds:0.00}s blocks={live.Count}");
|
||||
|
||||
Stopwatch swB = Stopwatch.StartNew();
|
||||
int freed = 0;
|
||||
for (int i = live.Count - 1; i >= 0; i -= 2)
|
||||
{
|
||||
allocator.Free(live[i]);
|
||||
live.RemoveAt(i);
|
||||
freed++;
|
||||
}
|
||||
swB.Stop();
|
||||
Console.WriteLine($" phaseB freed {freed} in {swB.Elapsed.TotalSeconds:0.00}s remain={live.Count}");
|
||||
|
||||
allocated = 0;
|
||||
int reCount = 0;
|
||||
Stopwatch swC = Stopwatch.StartNew();
|
||||
while (allocated < targetBytes / 2)
|
||||
{
|
||||
uint sz = PickSize(rng);
|
||||
HybridLayerSegregatedFitAllocationHandle h = allocator.Alloc(sz);
|
||||
live.Add(h);
|
||||
allocated += sz;
|
||||
reCount++;
|
||||
}
|
||||
swC.Stop();
|
||||
Console.WriteLine($" phaseC re-alloc {reCount} in {swC.Elapsed.TotalSeconds:0.00}s ~{allocated / (1024.0 * 1024.0):0}MB");
|
||||
|
||||
Stopwatch swD = Stopwatch.StartNew();
|
||||
foreach (HybridLayerSegregatedFitAllocationHandle h in live) {
|
||||
allocator.Free(h);
|
||||
}
|
||||
|
||||
swD.Stop();
|
||||
Console.WriteLine($" cleanup freed {live.Count} in {swD.Elapsed.TotalSeconds:0.00}s");
|
||||
}
|
||||
|
||||
private static void BenchFreeThroughput(
|
||||
HybridLayerSegregatedFitAllocator allocator,
|
||||
int count,
|
||||
uint blockSize)
|
||||
{
|
||||
List<HybridLayerSegregatedFitAllocationHandle> list = new List<HybridLayerSegregatedFitAllocationHandle>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
list.Add(allocator.Alloc(blockSize));
|
||||
}
|
||||
|
||||
Stopwatch sw = Stopwatch.StartNew();
|
||||
for (int i = 0; i < count; i++) {
|
||||
allocator.Free(list[i]);
|
||||
}
|
||||
|
||||
sw.Stop();
|
||||
double freesPerSec = count / sw.Elapsed.TotalSeconds;
|
||||
|
||||
// Left align and widen columns
|
||||
Console.WriteLine($" size={Fmt(blockSize),-12} count={count,-12} free/s={freesPerSec,-16:0.0}");
|
||||
}
|
||||
|
||||
private static string Fmt(uint bytes)
|
||||
{
|
||||
if (bytes >= 1024 * 1024) {
|
||||
return $"{bytes / (1024 * 1024)}MB";
|
||||
}
|
||||
|
||||
if (bytes >= 1024) {
|
||||
return $"{bytes / 1024}KB";
|
||||
}
|
||||
|
||||
return $"{bytes}B";
|
||||
}
|
||||
|
||||
private static uint PickSize(Random rng)
|
||||
{
|
||||
uint raw = SizeSweep[rng.Next(SizeSweep.Length)];
|
||||
return raw > MaxAllocSize ? MaxAllocSize : raw;
|
||||
}
|
||||
|
||||
private static void Warmup(HybridLayerSegregatedFitAllocator allocator)
|
||||
{
|
||||
List<HybridLayerSegregatedFitAllocationHandle> tmp = new List<HybridLayerSegregatedFitAllocationHandle>(4096);
|
||||
for (int i = 0; i < 4096; i++) {
|
||||
tmp.Add(allocator.Alloc(256));
|
||||
}
|
||||
|
||||
foreach (HybridLayerSegregatedFitAllocationHandle h in tmp) {
|
||||
allocator.Free(h);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
WNDCLASSA
|
||||
AdjustWindowRect
|
||||
ChoosePixelFormat
|
||||
CreateWindowEx
|
||||
DefWindowProc
|
||||
DescribePixelFormat
|
||||
DestroyWindow
|
||||
DispatchMessage
|
||||
FreeLibrary
|
||||
GetDC
|
||||
GetEnhMetaFilePixelFormat
|
||||
GetModuleHandle
|
||||
GetPixelFormat
|
||||
GetProcAddress
|
||||
LoadCursor
|
||||
LoadLibrary
|
||||
PeekMessage
|
||||
PostQuitMessage
|
||||
RegisterClass
|
||||
RegisterClassA
|
||||
ReleaseDC
|
||||
SetPixelFormat
|
||||
ShowWindow
|
||||
SwapBuffers
|
||||
TranslateMessage
|
||||
UpdateWindow
|
||||
wglGetProcAddress
|
||||
wglCreateContext
|
||||
wglCreateLayerContext
|
||||
wglCopyContext
|
||||
wglDeleteContext
|
||||
wglDescribeLayerPlane
|
||||
wglGetCurrentContext
|
||||
wglGetCurrentDC
|
||||
wglGetLayerPaletteEntries
|
||||
wglGetProcAddress
|
||||
wglMakeCurrent
|
||||
wglRealizeLayerPalette
|
||||
wglSetLayerPaletteEntries
|
||||
wglShareLists
|
||||
wglSwapLayerBuffers
|
||||
wglUseFontBitmaps
|
||||
wglUseFontOutlines
|
||||
@@ -1,85 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="Program.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Collections;
|
||||
using StgSharp.Controlling.UsrActivity;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
|
||||
using StgSharp.Math;
|
||||
using StgSharp.Model.Step;
|
||||
using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
using StgSharp.Script;
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Intrinsics;
|
||||
using System.Runtime.Intrinsics.X86;
|
||||
using System.Xml.XPath;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal static partial class Program
|
||||
{
|
||||
|
||||
private static string testExpPath = @"D:\Programmer\stepcode\data\ap203\ap203.exp";
|
||||
|
||||
internal static unsafe void Main( string[] args )
|
||||
{
|
||||
try
|
||||
{
|
||||
World.Init();
|
||||
for( int i = 0; i <= 100; i++ ) {
|
||||
Console.WriteLine( $"{i}!\tequals to {Scaler.Factorial(i).ToString()}" );
|
||||
}
|
||||
return;
|
||||
}
|
||||
catch( Exception ex )
|
||||
{
|
||||
Console.WriteLine( ex );
|
||||
/*
|
||||
World.WriteLog($"{ex}", LogType.Error);
|
||||
if( true ) { }
|
||||
Dialogue.PostError( ex );
|
||||
/**/
|
||||
World.Terminate( -1 );
|
||||
/**/
|
||||
}
|
||||
finally
|
||||
{
|
||||
World.Terminate( 0 );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"profiles": {
|
||||
"StgSharpDebug": {
|
||||
"commandName": "Project",
|
||||
"nativeDebugging": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,398 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="Partical.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Controls;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Graphics.OpenGL;
|
||||
using StgSharp.Internal.OpenGL;
|
||||
using StgSharp.Math;
|
||||
using StgSharp.Timing;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public class ParticleRenderStream : glRender
|
||||
{
|
||||
|
||||
private AutoTextureGL autoT;
|
||||
|
||||
private ElementBuffer ebo;
|
||||
private ElementBuffer f_ebo;
|
||||
private FrameBuffer fbo;
|
||||
private Image i;
|
||||
|
||||
private int temp = 0;
|
||||
private PlainInstancingBuffer<ParticleOnPlain> buffer;
|
||||
private RenderBuffer rbo;
|
||||
private ShaderProgram frameMainShader;
|
||||
private ShaderProgram s;
|
||||
private TextureGL f_t;
|
||||
private TextureGL t;
|
||||
private Uniform<int> texUniform;
|
||||
private Uniform<float> time;
|
||||
private VertexArray f_vao;
|
||||
private VertexArray vao;
|
||||
|
||||
private VertexBuffer f_vbo;
|
||||
private VertexBuffer vbo;
|
||||
|
||||
public ParticleRenderStream() { }
|
||||
|
||||
public override bool IsContextSharable => true;
|
||||
|
||||
public Rectangle ButtonBounding { get; private set; }
|
||||
|
||||
public TextureProvider ButtonTextureProvider { get; private set; }
|
||||
|
||||
//render a controlling item
|
||||
public void ButtonMain( IEnumerable<PlainGeometryMesh> items )
|
||||
{
|
||||
//Console.WriteLine("Render Button Itself");
|
||||
|
||||
GL.BindFrameBuffer( FrameBufferTarget.All, GlHandle.Zero ); /*GL.Assert(true);/**/
|
||||
GL.ClearColor( 0.4f, TimePassed % 1.0f, 0f, 1.0f ); /*GL.Assert(true);/**/
|
||||
GL.Clear( MaskBufferBit.COLOR /**/ | MaskBufferBit.DEPTH/**/ ); /*GL.Assert(true);/**/
|
||||
|
||||
f_vao.Bind( 0 ); //GL.Assert(true);
|
||||
|
||||
foreach( PlainGeometryMesh mesh in items )
|
||||
{
|
||||
//autoT.SelectTextureAndBind(mesh.TextureImage);
|
||||
f_t.LoadTexture( 0, mesh.TextureImage );
|
||||
|
||||
//GL.Assert(true);
|
||||
|
||||
frameMainShader.Use(); //GL.Assert(true);
|
||||
|
||||
GL.DrawElements( GeometryType.TRIANGLES, 6, TypeCode.UInt32, IntPtr.Zero );
|
||||
}
|
||||
|
||||
//GL.ClearError();
|
||||
//GL.Assert(true);
|
||||
}
|
||||
|
||||
public void Main()
|
||||
{
|
||||
temp++;
|
||||
|
||||
//GL.ClearError();
|
||||
GL.Viewport( 0, 0, ( uint )Width, ( uint )Height );
|
||||
|
||||
//Console.Clear();
|
||||
buffer.UpdateAllParticles();
|
||||
|
||||
//Console.WriteLine(GL.CheckFrameBufferStatus(FrameBufferTarget.All));
|
||||
|
||||
fbo.Bind( 0 ); //GL.Assert(true);
|
||||
vao.Bind( 0 ); //GL.Assert(true);
|
||||
t.Bind2D( 0 ); //GL.Assert(false);
|
||||
|
||||
GL.Viewport( 0, 0, ( uint )Width, ( uint )Height );
|
||||
|
||||
/**/
|
||||
|
||||
GL.TextureImage2d<byte>(
|
||||
Texture2DTarget.Texture2D, 0, ImageChannel.WithAlphaChannel, ( uint )Width,
|
||||
( uint )Height, ImageChannel.WithAlphaChannel, PixelChannelLayout.Byte, null );
|
||||
/**/
|
||||
|
||||
//GL.Assert(false);
|
||||
//Console.WriteLine(GL.CheckFrameBufferStatus(FrameBufferTarget.All));
|
||||
|
||||
GL.ClearColor( ( 0.6f + TimePassed ) % 1.0f, 0.1f, 0.3f, 1 );
|
||||
|
||||
//GL.Assert( false );
|
||||
|
||||
//Console.WriteLine(GL.CheckFrameBufferStatus(FrameBufferTarget.All));
|
||||
GL.Clear( MaskBufferBit.COLOR /**/ | MaskBufferBit.DEPTH /**/ );
|
||||
|
||||
|
||||
//GL.Assert(false);
|
||||
|
||||
vbo.Bind( 1 );
|
||||
vbo.WriteVectorData<Vec4>( 1, buffer.CoordAndRotationSpan, BufferUsage.StreamDraw );
|
||||
|
||||
|
||||
s.Use();
|
||||
NativeCamera.SetAllUniforms();
|
||||
GL.SetUniformValue( time, TimePassed );
|
||||
|
||||
GL.DrawElementsInstanced( GeometryType.TRIANGLES, 6, TypeCode.UInt32, IntPtr.Zero,
|
||||
100 );
|
||||
|
||||
//Console.WriteLine(TimePassed);
|
||||
//GL.Assert(true);
|
||||
|
||||
GL.WaitAccomplishment();
|
||||
GL.BindVertexArray( GlHandle.Zero );
|
||||
/**/
|
||||
|
||||
//GL.Assert(true);
|
||||
|
||||
ImageHelper.Resize( i, Width, Height, ImageMovement.Discard );
|
||||
|
||||
//GL.ClearError();
|
||||
//Console.Write($"size set to {Height},{Width}");
|
||||
//Console.WriteLine($"Image resized to {i.Height} {i.Width}");
|
||||
GL.GetTextureImage(
|
||||
Texture2DTarget.Texture2D, 0, ImageChannel.WithAlphaChannel,
|
||||
PixelChannelLayout.Byte, i.PixelBuffer );
|
||||
/*
|
||||
for (int num = 0; num < i.PixelBuffer.Length; num+=10000)
|
||||
{
|
||||
Console.Write($"{i.PixelBuffer[num]}\t");
|
||||
}
|
||||
/**/
|
||||
|
||||
//GL.Assert(true);
|
||||
//Array.Fill<byte>(i.PixelBuffer, 24);
|
||||
|
||||
GL.BindFrameBuffer( FrameBufferTarget.All, GlHandle.Zero );
|
||||
|
||||
//GL.Assert(true);
|
||||
/**/
|
||||
}
|
||||
|
||||
public void NothingMain()
|
||||
{
|
||||
GL.ClearError();
|
||||
|
||||
//GL.BindFrameBuffer(FrameBufferTarget.All, GlHandle.Zero);
|
||||
GL.ClearColor( 0.5f, 0.2f, 0.3f, 1.0f );
|
||||
GL.Assert( false );
|
||||
}
|
||||
|
||||
public void RenderButton(
|
||||
ButtonStatus status,
|
||||
float statusBegin,
|
||||
in TextureProvider provider )
|
||||
{
|
||||
provider.UpdateFromImage( i );
|
||||
}
|
||||
|
||||
internal static Vec3 DefaultRotation( TimeSpanProvider provider, out float rotation )
|
||||
{
|
||||
rotation = provider.SpanLengthLowPrecession;
|
||||
float angle = provider.CurrentSecond * 2;
|
||||
return ( new Vec3( Scaler.Cos( angle ), Scaler.Sin( angle ),
|
||||
0 ) ) * provider.SpanLengthLowPrecession;
|
||||
}
|
||||
|
||||
protected override void CustomizeDeinit() { }
|
||||
|
||||
protected override void CustomizeInit()
|
||||
{
|
||||
//GL.ClearError();
|
||||
//GL.Assert(true);
|
||||
|
||||
buffer = new PlainInstancingBuffer<ParticleOnPlain>();
|
||||
for( int i = 0; i < 10; i++ )
|
||||
{
|
||||
float ai = Scaler.Abs( i - 5.0f );
|
||||
for( int t = 0; t < 10; t++ )
|
||||
{
|
||||
float at = Scaler.Abs( t - 5.0f );
|
||||
|
||||
ParticleOnPlain p = new ParticleOnPlain( buffer );
|
||||
( ( IInstancing )p ).Coord = new Vec3(
|
||||
( ( ( -5 ) + i ) * 0.2f ) + 0.1f, ( ( ( -5 ) + t ) * 0.2f ) + 0.1f, 0 );
|
||||
( ( IInstancing )p ).Scale =
|
||||
Scaler.MinOf( i, t ) * 0.15f;
|
||||
( ( IInstancing )p ).Motion = new GeometryMotion(
|
||||
true, TimeProvider, DefaultRotation );
|
||||
}
|
||||
}
|
||||
|
||||
//GL.Assert(true);
|
||||
|
||||
//SetSizeLimit(800, 800, 800, 800);
|
||||
|
||||
s = CreateShaderProgram();
|
||||
frameMainShader = CreateShaderProgram();
|
||||
Shader pvs = CreateShaderSegment( ShaderType.Vertex, 2 );
|
||||
Shader pfs = CreateShaderSegment( ShaderType.Fragment, 2 );
|
||||
|
||||
//GL.Assert(true);
|
||||
pvs.Compile( 0, Shader.FromCodeFile( "Shader\\particle.vert" ) );
|
||||
|
||||
//GL.Assert(true);
|
||||
pvs.AttachTo( 0, s );
|
||||
|
||||
//GL.Assert(true);
|
||||
pfs.Compile( 0, Shader.FromCodeFile( "Shader\\particle.frag" ) );
|
||||
pfs.AttachTo( 0, s );
|
||||
s.Link();
|
||||
|
||||
//GL.Assert(true);
|
||||
|
||||
pvs.Compile( 1, Shader.FromCodeFile( "Shader\\fbo.vert" ) );
|
||||
pvs.AttachTo( 1, frameMainShader );
|
||||
pfs.Compile( 1, Shader.FromCodeFile( "Shader\\fbo.frag" ) );
|
||||
pfs.AttachTo( 1, frameMainShader );
|
||||
frameMainShader.Link();
|
||||
|
||||
//GL.Assert(true);
|
||||
vbo = CreateVertexBuffer( 3 );
|
||||
vao = CreateVertexArray( 1 );
|
||||
ebo = CreateElementBuffer( 1 );
|
||||
vbo.Bind( 0 );
|
||||
|
||||
Rectangle rec = new Rectangle(
|
||||
0.05f, 0.05f, 0.05f, -0.05f, -0.05f, -0.05f, -0.05f, 0.05f );
|
||||
|
||||
//GL.Assert(true);
|
||||
vao.Bind( 0 );
|
||||
vbo.WriteVectorData( 0, rec.VertexStream, BufferUsage.StaticDraw );
|
||||
ebo.SetValue( 0, rec.VertexIndices, BufferUsage.StaticDraw );
|
||||
vao.SetVertexAttribute( 0, 3, TypeCode.Single, false, 4 * sizeof( float ), 0 );
|
||||
|
||||
vbo.WriteVectorData<Vec4>( 1, buffer.CoordAndRotationSpan, BufferUsage.StreamDraw );
|
||||
vao.SetVertexAttribute( 1, 3, TypeCode.Single, false, 4 * sizeof( float ), 0 );
|
||||
vao.SetVertexAttribute(
|
||||
2, 1, TypeCode.Single, false, 4 * sizeof( float ), 3 * sizeof( float ) );
|
||||
|
||||
GL.VertexAttributeDivisor( 1, 1 );
|
||||
GL.VertexAttributeDivisor( 2, 1 );
|
||||
|
||||
vbo.WriteScalerData<float>( 2, buffer.ScalingSpan, BufferUsage.StaticDraw );
|
||||
vao.SetVertexAttribute( 3, 1, TypeCode.Single, false, sizeof( float ), 0 );
|
||||
|
||||
GL.VertexAttributeDivisor( 3, 1 );
|
||||
|
||||
vbo.Unbind();
|
||||
GL.BindVertexArray( GlHandle.Zero );
|
||||
|
||||
NativeCameraViewTarget( (0, 0, -100), (0, 0, 0), (0, 1, 0) );
|
||||
NativeCameraViewRange( new Degree( 1.5f ), Vec2.Zero, (50, 50) );
|
||||
NativeCameraUniform( s, "Camera" );
|
||||
|
||||
s.Use();
|
||||
|
||||
fbo = CreateFrameBuffer( 1 );
|
||||
rbo = CreateRenderBuffer( 1 );
|
||||
fbo.Bind( 0 );
|
||||
rbo.Bind( 0 );
|
||||
|
||||
//GL.Assert(true);
|
||||
t = CreateTexture( 1 );
|
||||
t.Bind2D( 0 );
|
||||
GL.TextureImage2d<byte>(
|
||||
Texture2DTarget.Texture2D, 0, ImageChannel.WithAlphaChannel, ( uint )Width,
|
||||
( uint )Height, ImageChannel.WithAlphaChannel, PixelChannelLayout.Byte, null! );
|
||||
t.Set2dWrapProperty( 0, TextureWrap.Repeat, TextureWrap.Repeat );
|
||||
t.Set2dFilterProperty( 0, TextureFilter.Linear, TextureFilter.Linear );
|
||||
|
||||
//GL.Assert(true);
|
||||
GL.FrameBufferTexture2d(
|
||||
FrameBufferTarget.All, glAttachment.Color( 0 ), Texture2DTarget.Texture2D, t[ 0 ],
|
||||
0 );
|
||||
|
||||
GL.SetRenderBufferStorage( RenderBufferInternalFormat.Depth24_Stencil8, this.Size );
|
||||
GL.CombineFrameBufferRenderBuffer( FrameBufferAttachment.DepthAndStencil, rbo[ 0 ] );
|
||||
|
||||
Console.WriteLine( GL.CheckFrameBufferStatus( FrameBufferTarget.All ) );
|
||||
|
||||
FrameBuffer.BindNull();
|
||||
|
||||
//GL.Assert(true);
|
||||
int streamLength = this.Width * this.Height * 4;
|
||||
byte[] imageStream = new byte[streamLength];
|
||||
i = Image.FromMemory( this.Size, ImageChannel.WithAlphaChannel, imageStream );
|
||||
|
||||
|
||||
time = s.GetUniform<float>( "time" );
|
||||
|
||||
Vec2[] buttonTextureCoordArray = {
|
||||
(0f, 1f),
|
||||
(1f, 1f),
|
||||
(1f, 0f),
|
||||
(0f, 0f)
|
||||
};
|
||||
ButtonBounding = new Rectangle( -0.9f, 0.9f, 0.9f, 0.9f, 0.9f, -0.9f, -0.9f, -0.9f );
|
||||
|
||||
//GL.Assert(true);
|
||||
ButtonTextureProvider = new TextureProvider( i, buttonTextureCoordArray );
|
||||
|
||||
f_vao = CreateVertexArray( 1 );
|
||||
f_vbo = CreateVertexBuffer( 2 );
|
||||
f_ebo = CreateElementBuffer( 1 );
|
||||
|
||||
//GL.Assert(true);
|
||||
f_vao.Bind( 0 );
|
||||
|
||||
f_ebo.Bind( 0 );
|
||||
f_ebo.SetValue( 0, ButtonBounding.VertexIndices, BufferUsage.StaticDraw );
|
||||
|
||||
//GL.Assert(true);
|
||||
f_vbo.Bind( 0 );
|
||||
f_vbo.WriteVectorData( 0, ButtonBounding.VertexStream, BufferUsage.StaticDraw );
|
||||
f_vao.SetVertexAttribute( 0, 3, TypeCode.Single, false, 4 * sizeof( float ), 0 );
|
||||
|
||||
//GL.Assert(true);
|
||||
f_vbo.Bind( 1 );
|
||||
f_vbo.WriteVectorData( 1, buttonTextureCoordArray, BufferUsage.StaticDraw );
|
||||
f_vao.SetVertexAttribute( 1, 3, TypeCode.Single, false, 4 * sizeof( float ), 0 );
|
||||
|
||||
//GL.Assert(true);
|
||||
|
||||
autoT = CreateAutoTexture( 4 );
|
||||
autoT.DefaultTextureProperty = new TextureProperty(
|
||||
TextureFilter.Nearest, TextureFilter.Nearest, TextureWrap.Repeat,
|
||||
TextureWrap.Repeat );
|
||||
|
||||
f_t = CreateTexture( 1 );
|
||||
f_t.Bind2D( 0 );
|
||||
f_t.Set2dWrapProperty( 0, TextureWrap.Repeat, TextureWrap.Repeat );
|
||||
f_t.Set2dFilterProperty( 0, TextureFilter.Nearest, TextureFilter.Nearest );
|
||||
|
||||
//GL.Assert(true);
|
||||
f_t.ActivateAs( TextureUnit.Unit1 );
|
||||
|
||||
//GL.Assert(true);
|
||||
frameMainShader.Use();
|
||||
texUniform = frameMainShader.GetUniform<int>( "tex" );
|
||||
|
||||
//GL.Assert(true);
|
||||
GL.SetUniformValue( texUniform, 1 );
|
||||
|
||||
//GL.Assert(true);
|
||||
|
||||
GL.ClearError();
|
||||
GL.Assert( true );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
#version 430 core
|
||||
|
||||
in vec3 texCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = texture(tex, texCoord.xy);
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
#version 430 core
|
||||
|
||||
layout(location = 0)in vec3 coord;
|
||||
layout(location = 1)in vec3 tCoord;
|
||||
|
||||
out vec3 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(coord.xyz,1.0f);
|
||||
texCoord = tCoord;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
@@ -1,13 +0,0 @@
|
||||
#version 430 core
|
||||
|
||||
in vec3 texCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = texture(tex, texCoord.xy);
|
||||
//fragColor = vec4(0.099f,0.226f,0.335f,0.0f);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0)in vec3 coord;
|
||||
layout(location = 1)in vec3 tCoord;
|
||||
|
||||
out vec3 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(coord.xyz,1.0f);
|
||||
texCoord = tCoord;
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#version 330 core
|
||||
|
||||
in vec2 TexCoord;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform vec4 color;
|
||||
uniform sampler2D ourTexture;
|
||||
uniform sampler2D ourTexture2;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 tex1 = texture(ourTexture, TexCoord);
|
||||
vec4 tex2 = texture(ourTexture2,TexCoord);
|
||||
FragColor = mix(tex1 * vec4( color.xyz, 1.0), tex2, 0.2) /* *vec4( TexColor,1.0) /**/;
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec3 aPos;
|
||||
layout(location = 1) in vec3 aColor;
|
||||
layout(location = 2) in vec2 aTextCoord;
|
||||
|
||||
out vec2 TexCoord;
|
||||
|
||||
uniform mat4x4 camera;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
TexCoord = aTextCoord;
|
||||
vec4 temp = vec4(aPos.xyz,1.0);
|
||||
gl_Position = /**/ camera * /**/ temp;
|
||||
}
|
||||
|
||||
//struct
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#version 460 core
|
||||
|
||||
uniform float time;
|
||||
|
||||
out vec3 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
fragColor = vec3( 0.5f,0.336f,mod( (0.9961f + time),1.0f) );
|
||||
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
#version 460 core
|
||||
|
||||
|
||||
layout(location = 0) in vec3 singleCoord;
|
||||
layout(location = 1) in vec3 locations;
|
||||
layout(location = 2) in float rotation;
|
||||
layout(location = 3) in float scale;
|
||||
|
||||
uniform mat4x4 Camera;
|
||||
|
||||
void main()
|
||||
{
|
||||
/**/
|
||||
mat4x4 scalingMat = mat4x4
|
||||
(
|
||||
scale,0,0,0,
|
||||
0,scale,0,0,
|
||||
0,0,scale,0,
|
||||
0,0,0,1
|
||||
);
|
||||
/**/
|
||||
/**/
|
||||
|
||||
mat4x4 rotationMat = mat4x4
|
||||
(
|
||||
cos(rotation),-sin(rotation),0,0,
|
||||
sin(rotation),cos(rotation),0,0,
|
||||
0,0,1,0,
|
||||
0,0,0,1
|
||||
);
|
||||
|
||||
/**/
|
||||
|
||||
gl_Position = Camera * ( rotationMat * scalingMat * vec4( singleCoord.xyz , 1) + vec4( locations.xyz , 0));
|
||||
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using StgSharp.Math;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public static class SimdDemo
|
||||
{
|
||||
public static void TestMethod()
|
||||
{
|
||||
Matrix44 m1 = new Matrix44();
|
||||
Matrix44 m2 = new Matrix44();
|
||||
var m3 = m1 * m2;
|
||||
Console.WriteLine(m3[0,0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
// file="SlabStressTest"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload
|
||||
// Copyright (c) Nitload. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in all
|
||||
// copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
using StgSharp.HighPerformance.Memory;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal static class SlabStressTest
|
||||
{
|
||||
|
||||
// Exercise the Nonconcurrent Chunked SLAB used by HLSF (allocation/free only)
|
||||
public static unsafe void Run()
|
||||
{
|
||||
Console.WriteLine("=== SLAB Allocator (Chunked) Single-Thread Stress Test ===");
|
||||
|
||||
// Use SLAB with element size of pointer (nuint) to simulate Entry handles
|
||||
SlabAllocator<BunchOfBytes> slab = SlabAllocator<BunchOfBytes>.Create(64, SlabBufferLayout.Chunked, false);
|
||||
|
||||
int cycles = 10;
|
||||
int allocsPerCycle = 200_000; // large enough to force internal growth
|
||||
|
||||
Stopwatch sw = new Stopwatch();
|
||||
|
||||
for (int c = 0; c < cycles; c++)
|
||||
{
|
||||
Console.WriteLine($"--- Cycle {c+1} ---");
|
||||
nuint[] ptrs = new nuint[allocsPerCycle];
|
||||
|
||||
sw.Restart();
|
||||
for (int i = 0; i < allocsPerCycle; i++) {
|
||||
ptrs[i] = slab.Allocate();
|
||||
}
|
||||
sw.Stop();
|
||||
Console.WriteLine($"Allocate: {allocsPerCycle} in {sw.Elapsed.TotalSeconds:0.00}s");
|
||||
|
||||
sw.Restart();
|
||||
for (int i = 0; i < allocsPerCycle; i++) {
|
||||
slab.Free(ptrs[i]);
|
||||
}
|
||||
sw.Stop();
|
||||
Console.WriteLine($"Free: {allocsPerCycle} in {sw.Elapsed.TotalSeconds:0.00}s");
|
||||
}
|
||||
|
||||
slab.Dispose();
|
||||
Console.WriteLine("=== SLAB Stress Complete ===");
|
||||
}
|
||||
|
||||
internal unsafe struct BunchOfBytes
|
||||
{
|
||||
|
||||
public fixed byte Data[128];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="StepReadingTest.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Model.Step;
|
||||
using StgSharp.PipeLine;
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal static partial class Program
|
||||
{
|
||||
|
||||
private static string[] stepFile = [
|
||||
@"D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\StepModel\_NPart#8299.stp",
|
||||
@"D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\StepModel\几何毛坯.STEP",
|
||||
];
|
||||
|
||||
private static void TestStepRead()
|
||||
{
|
||||
ExpressCompile.InitCompile();
|
||||
if( StepReader.FromFile( stepFile[ 1 ], out StepReader reader ) )
|
||||
{
|
||||
StepModel model = reader.ReadToModelSingleThread();
|
||||
PipeLineRunner.SetMaxTaskCount( 1 );
|
||||
string[] info = model.ShowStructure( int.MaxValue );
|
||||
FileStream fs = File.Open( "D:\\struct.txt", FileMode.Create,
|
||||
FileAccess.ReadWrite );
|
||||
StreamWriter sw = new StreamWriter( fs );
|
||||
foreach( string line in info )
|
||||
{
|
||||
sw.WriteLine( line );
|
||||
Console.WriteLine( line );
|
||||
}
|
||||
sw.Dispose();
|
||||
fs.Dispose();
|
||||
|
||||
//model.InitEntity();
|
||||
reader.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,103 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>Preview</LangVersion>
|
||||
<Nullable>warnings</Nullable>
|
||||
<StartupObject>StgSharp.Program</StartupObject>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<ErrorReport>none</ErrorReport>
|
||||
<SignAssembly>False</SignAssembly>
|
||||
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
||||
<PackageLicenseExpression> MIT</PackageLicenseExpression>
|
||||
<IncludeSymbols>False</IncludeSymbols>
|
||||
<Platforms>AnyCPU;x64</Platforms>
|
||||
<RunPostBuildEvent>Always</RunPostBuildEvent>
|
||||
<Configurations>Debug;Release;</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<Optimize>False</Optimize>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Optimize>False</Optimize>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<Optimize>True</Optimize>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Optimize>True</Optimize>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
|
||||
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
|
||||
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
|
||||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(IsWindows)'=='true'">
|
||||
<DefineConstants>Windows</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(IsOSX)'=='true'">
|
||||
<DefineConstants>OSX</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(IsLinux)'=='true'">
|
||||
<DefineConstants>Linux</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="SSG_errorlog.log" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\StgSharp.Common\StgSharp.Common.csproj" />
|
||||
<ProjectReference Include="..\StgSharp.Model\StgSharp.Model.csproj" />
|
||||
<ProjectReference Include="..\StgSharp.Script\StgSharp.Script.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Shader\awesomeface.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\fbo.frag">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\fbo.vert">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\Image1.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\main.frag">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\main.vert">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\particle.vert">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Shader\particle.frag">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="xcopy /E /I /Y $(SolutionDir)build $(OutDir)" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="TestFileRead.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal static partial class Program
|
||||
{
|
||||
|
||||
private static void TestFileRead()
|
||||
{
|
||||
ExpressCompile.InitCompile();
|
||||
ExpFileSource reader = new ExpFileSource( testExpPath );
|
||||
ExpSchemaSource schemaSource = new ExpSchemaSource();
|
||||
schemaSource.ReadSchema( reader );
|
||||
|
||||
ExpSchema schema = schemaSource.Compile( ExpressCompileOption.Translate );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="TestRender.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Collections;
|
||||
using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal static partial class Program
|
||||
{
|
||||
|
||||
public static void TestRender()
|
||||
{
|
||||
World.InitGL( 4, 6 );
|
||||
World.GlobalSetting.VSyncActivated = false;
|
||||
|
||||
ViewPort vp = new ViewPort( 800, 600, "Hello StgSharp!", IntPtr.Zero );
|
||||
|
||||
//throw new NotImplementedException();
|
||||
|
||||
ViewModelBase mainModel = new ViewModelMain( vp );
|
||||
mainModel.CreateAndBindView<ViewMain>( "MainView", (1, 1, 1) );
|
||||
|
||||
mainModel.UseViewModel( "MainView" );
|
||||
|
||||
World.Terminate( 0 );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="Control.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Controlling.UsrActivity;
|
||||
using StgSharp.MVVM;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public partial class ViewMain
|
||||
{
|
||||
|
||||
protected class Control : ViewResponder<ViewMain>
|
||||
{
|
||||
|
||||
public Control( ViewMain view ) : base( view ) { }
|
||||
|
||||
public override void CustomizedInitialize(
|
||||
Func<IClickTrigger, string, Action> keyRegister ) { }
|
||||
|
||||
public override bool ValidateInitializing()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="Design.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Controlling;
|
||||
using StgSharp.Controlling.UsrActivity;
|
||||
using StgSharp.Controls;
|
||||
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public partial class ViewMain
|
||||
{
|
||||
|
||||
internal DemoButtonGroup Group { get; set; }
|
||||
|
||||
internal TriggerButton OnlyButton { get; set; }
|
||||
|
||||
internal class Design : ViewDesigner<ViewMain>
|
||||
{
|
||||
|
||||
public Design( ViewMain view ) : base( view ) { }
|
||||
|
||||
public override sealed void CustomizedInitialize()
|
||||
{
|
||||
Binding.Group = CreateKeyboardButtonGroup<DemoButtonGroup>(
|
||||
new KeyTrigger( KeyboardKey.Left, KeyStatus.PRESS ),
|
||||
new KeyTrigger( KeyboardKey.Right, KeyStatus.PRESS ),
|
||||
new KeyTrigger( KeyboardKey.Up, KeyStatus.PRESS ),
|
||||
new KeyTrigger( KeyboardKey.Down, KeyStatus.PRESS ),
|
||||
new KeyTrigger( KeyboardKey.Enter, KeyStatus.PRESS ) );
|
||||
Binding.OnlyButton = CreateKeyboardButton(
|
||||
Binding.Stream.ButtonBounding, Binding.Stream.ButtonTextureProvider, true );
|
||||
Binding.OnlyButton.RenderButtonTexture += Binding.Stream.RenderButton;
|
||||
}
|
||||
|
||||
public override bool ValidateInitializing()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class DemoButtonGroup : KeyboardButtonGroup
|
||||
{
|
||||
|
||||
public override sealed void Confirm()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="NewRender.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.HighPerformance;
|
||||
|
||||
using StgSharp.Internal;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public partial class ViewMain
|
||||
{
|
||||
|
||||
public ParticleRenderStream Stream { get; set; }
|
||||
|
||||
private class NewRender : ViewRender<ViewMain>
|
||||
{
|
||||
|
||||
public NewRender( ViewMain view ) : base( view ) { }
|
||||
|
||||
public override void CustomizedInitialize()
|
||||
{
|
||||
Binding.Stream = CreateRenderStream<ParticleRenderStream>();
|
||||
Render[ "only".AsLabel() ] = Binding.Stream;
|
||||
}
|
||||
|
||||
public override bool ValidateInitializing()
|
||||
{
|
||||
return Binding.Stream != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="ViewMain.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public partial class ViewMain : ViewBase
|
||||
{
|
||||
|
||||
private Dictionary<string, DataBindingEntry> _databindingIndexMap;
|
||||
|
||||
public ViewMain()
|
||||
{
|
||||
_databindingIndexMap = new Dictionary<string, DataBindingEntry>();
|
||||
}
|
||||
|
||||
public override void CustomizedInitialize( [NotNull]ViewModelBase viewModelBinding )
|
||||
{
|
||||
Designer = new Design( this );
|
||||
Responder = new Control( this );
|
||||
Render = new NewRender( this );
|
||||
|
||||
Render.Initialize();
|
||||
Designer.Initialize();
|
||||
Responder.Initialize( viewModelBinding.MethodLookup );
|
||||
}
|
||||
|
||||
public override bool TryGetObjectReference( string name, out DataBindingEntry entry )
|
||||
{
|
||||
if( _databindingIndexMap.TryGetValue( name, out entry ) ) {
|
||||
return true;
|
||||
}
|
||||
try
|
||||
{
|
||||
entry = name switch
|
||||
{
|
||||
_ => default( DataBindingEntry ),
|
||||
};
|
||||
return !entry.ExactEqual( default( DataBindingEntry ) );
|
||||
}
|
||||
catch( Exception )
|
||||
{
|
||||
entry = default( DataBindingEntry );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Show()
|
||||
{
|
||||
Stream.RenderStart();
|
||||
|
||||
//Stream.NothingMain();
|
||||
|
||||
Stream.Main();
|
||||
Stream.ButtonMain( OnlyButton );
|
||||
Stream.RenderEnd();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="ViewModelMain.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person
|
||||
// obtaining a copy of this software and associated documentation
|
||||
// files (the “Software”), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge,
|
||||
// publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
// and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and
|
||||
// this permission notice shall be included in all copies
|
||||
// or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”,
|
||||
// WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
// ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Graphics;
|
||||
|
||||
using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public class ViewModelMain : ViewModelBase
|
||||
{
|
||||
|
||||
private Dictionary<string, DataBindingEntry> dataBindingEntryIndexMap;
|
||||
|
||||
public ViewModelMain( ViewPort vp )
|
||||
: base( vp, 60 )
|
||||
{
|
||||
dataBindingEntryIndexMap = new Dictionary<string, DataBindingEntry>();
|
||||
}
|
||||
|
||||
public override void CustomizeInitialize() { }
|
||||
|
||||
public override bool TryGetObjectReference( string name, out DataBindingEntry entry )
|
||||
{
|
||||
if( dataBindingEntryIndexMap.TryGetValue( name, out entry ) ) {
|
||||
return true;
|
||||
}
|
||||
entry = name switch
|
||||
{
|
||||
_ => DataBindingEntry.NullBinding,
|
||||
};
|
||||
|
||||
if( entry.ExactEqual( DataBindingEntry.NullBinding ) ) {
|
||||
return false;
|
||||
}
|
||||
dataBindingEntryIndexMap.Add( name, entry );
|
||||
return true;
|
||||
}
|
||||
|
||||
}//------------------------------------- End of Class ------------------------------------------
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,58 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETStandard,Version=v2.1/",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETStandard,Version=v2.1": {},
|
||||
".NETStandard,Version=v2.1/": {
|
||||
"StgSharp.Common/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CSharp": "4.7.0",
|
||||
"System.Runtime.CompilerServices.Unsafe": "6.1.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.Common.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Microsoft.CSharp.dll": {
|
||||
"assemblyVersion": "4.0.5.0",
|
||||
"fileVersion": "4.700.19.56404"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.1.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {
|
||||
"assemblyVersion": "6.0.0.0",
|
||||
"fileVersion": "6.100.24.56208"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharp.Common/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==",
|
||||
"path": "microsoft.csharp/4.7.0",
|
||||
"hashPath": "microsoft.csharp.4.7.0.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-5o/HZxx6RVqYlhKSq8/zronDkALJZUT2Vz0hx43f0gwe8mwlM0y2nYlqdBwLMzr262Bwvpikeb/yEwkAa5PADg==",
|
||||
"path": "system.runtime.compilerservices.unsafe/6.1.0",
|
||||
"hashPath": "system.runtime.compilerservices.unsafe.6.1.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
-149
@@ -1,149 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"StgSharp.TerminalDialogue/1.0.0": {
|
||||
"dependencies": {
|
||||
"Terminal.Gui": "2.0.0-v2-develop.2329"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.TerminalDialogue.dll": {}
|
||||
}
|
||||
},
|
||||
"ColorHelper/1.8.1": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/ColorHelper.dll": {
|
||||
"assemblyVersion": "1.8.1.0",
|
||||
"fileVersion": "1.8.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.IO.Abstractions/21.0.22": {
|
||||
"dependencies": {
|
||||
"TestableIO.System.IO.Abstractions": "21.0.22",
|
||||
"TestableIO.System.IO.Abstractions.Wrappers": "21.0.22"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.IO.Abstractions.dll": {
|
||||
"assemblyVersion": "21.0.0.0",
|
||||
"fileVersion": "21.0.22.62509"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encodings.Web/8.0.0": {},
|
||||
"System.Text.Json/8.0.4": {
|
||||
"dependencies": {
|
||||
"System.Text.Encodings.Web": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Terminal.Gui/2.0.0-v2-develop.2329": {
|
||||
"dependencies": {
|
||||
"ColorHelper": "1.8.1",
|
||||
"System.IO.Abstractions": "21.0.22",
|
||||
"System.Text.Json": "8.0.4",
|
||||
"Wcwidth": "2.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Terminal.Gui.dll": {
|
||||
"assemblyVersion": "2.0.0.0",
|
||||
"fileVersion": "2.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions/21.0.22": {
|
||||
"runtime": {
|
||||
"lib/net8.0/TestableIO.System.IO.Abstractions.dll": {
|
||||
"assemblyVersion": "21.0.0.0",
|
||||
"fileVersion": "21.0.22.62509"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions.Wrappers/21.0.22": {
|
||||
"dependencies": {
|
||||
"TestableIO.System.IO.Abstractions": "21.0.22"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/TestableIO.System.IO.Abstractions.Wrappers.dll": {
|
||||
"assemblyVersion": "21.0.0.0",
|
||||
"fileVersion": "21.0.22.62509"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Wcwidth/2.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Wcwidth.dll": {
|
||||
"assemblyVersion": "2.0.0.0",
|
||||
"fileVersion": "2.0.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharp.TerminalDialogue/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"ColorHelper/1.8.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-rblWXd/02TfwJjX53xEfQnbnDRKxCm09VtavV8JaIcmIFWt9efNf6xTQ3WeXgy/she5R31eRTtnizFoUoDrs5w==",
|
||||
"path": "colorhelper/1.8.1",
|
||||
"hashPath": "colorhelper.1.8.1.nupkg.sha512"
|
||||
},
|
||||
"System.IO.Abstractions/21.0.22": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-DRnFyMIjO1KG9fqUPKV7XDPgECEwrNpsb3OLD0mImViVpRZ5747o7vqrOYbn9AMaQ8eajLeKH0fXQglgH7v42A==",
|
||||
"path": "system.io.abstractions/21.0.22",
|
||||
"hashPath": "system.io.abstractions.21.0.22.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encodings.Web/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==",
|
||||
"path": "system.text.encodings.web/8.0.0",
|
||||
"hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Json/8.0.4": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==",
|
||||
"path": "system.text.json/8.0.4",
|
||||
"hashPath": "system.text.json.8.0.4.nupkg.sha512"
|
||||
},
|
||||
"Terminal.Gui/2.0.0-v2-develop.2329": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-1WRHeZKN5tnF8DUu0vHz5pGZIY9ETwufKbUHCoH3UTcIeOlduhRCpBhTyJWri/fePsUkij2euFMGX2yHfk4h/A==",
|
||||
"path": "terminal.gui/2.0.0-v2-develop.2329",
|
||||
"hashPath": "terminal.gui.2.0.0-v2-develop.2329.nupkg.sha512"
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions/21.0.22": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yq3I8rUjNoo4JTOT3jbGfTM5VfowaSYiooDO2bfvQe6XGVyZiSIzaKyCmSnuUEyuktw6zzuVE1lJnUeDhJWtyQ==",
|
||||
"path": "testableio.system.io.abstractions/21.0.22",
|
||||
"hashPath": "testableio.system.io.abstractions.21.0.22.nupkg.sha512"
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions.Wrappers/21.0.22": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ETpw1B6VOsQ5zbfqxqLKjITnMvB9M0K5/bK8qJc6jih+tnlKQmtnnOPSS+OeKCqsZDYeHxPNp4ytQPJS3R+WXA==",
|
||||
"path": "testableio.system.io.abstractions.wrappers/21.0.22",
|
||||
"hashPath": "testableio.system.io.abstractions.wrappers.21.0.22.nupkg.sha512"
|
||||
},
|
||||
"Wcwidth/2.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-eGZYH/V+X1DwEXrPUlUcAp8pU5a38d8IvaQzq4pclJxF1x8bizssIo4uWc3qxmS64BNGK5WnDxyBYJz84+Msqg==",
|
||||
"path": "wcwidth/2.0.0",
|
||||
"hashPath": "wcwidth.2.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
-12
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,930 +0,0 @@
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:48:20.0250518+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:49:00.7889832+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:50:20.5568219+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:52:30.6701933+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:54:12.4207400+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:58:12.5637707+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:59:02.6508807+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T09:59:18.7254757+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:01:34.0564518+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:02:28.6009643+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:03:38.1218120+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:04:20.3040075+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:05:38.5763463+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:06:07.2340689+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:08:58.2591383+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:10:17.0335668+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:14:19.2506849+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:15:13.7212760+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:26:03.1144073+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:26:54.7321855+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:28:17.9672753+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:29:36.1146284+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:30:25.6632442+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:32:30.5751638+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:35:02.2901339+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:37:32.7632106+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:38:01.5884161+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:38:37.5872535+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:38:53.0708515+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:41:40.8513674+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:42:56.4180556+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T10:45:49.5138013+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T11:19:13.7767133+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T11:50:40.9027411+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T12:27:05.0758657+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T12:47:26.9072082+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T12:50:40.6871790+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T12:52:03.4121356+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T12:53:42.0860584+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T13:14:23.3537535+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T13:15:58.6369914+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T15:22:24.8796298+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T15:43:42.5772785+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T16:08:35.1436652+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T16:11:38.2008786+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T16:21:52.1580127+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T16:33:49.7006942+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T17:11:25.5281283+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T17:31:30.7469065+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T18:14:05.3639601+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T18:18:01.9446078+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:29:34.4937824+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:29:49.7562648+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:30:09.3355645+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:32:49.9250662+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:34:13.7324398+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:36:29.3544691+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:38:11.5532515+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:39:04.3385493+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:50:13.5539302+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:50:50.4098966+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:54:17.3408600+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T19:54:54.4105578+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:05:08.8711722+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:15:45.7098270+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:16:05.4148820+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:16:27.5407335+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:17:40.9982527+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:21:08.7737658+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:22:08.2288920+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:22:52.8916277+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:26:44.1075510+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:26:57.5946167+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:28:31.5832605+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:30:01.5283461+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:33:22.0133622+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:34:26.1848817+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:35:00.8692960+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:35:27.0486326+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:36:05.1900990+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:38:38.6958457+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:38:58.9124959+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:40:01.7375546+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:40:36.7217050+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:40:53.3916454+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:41:05.7709166+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:43:29.3343464+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:44:49.0058910+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:46:34.8142280+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:47:56.0982167+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:50:39.2761574+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:51:00.8944556+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:51:23.5488991+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:51:52.3885321+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:54:13.8831870+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:54:30.2013926+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:55:01.0019819+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:58:53.1321907+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T22:59:15.6156048+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T23:01:03.8835351+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T23:01:13.0193710+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T23:03:28.9044768+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T23:08:26.0262887+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T23:09:27.2138117+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-08T23:09:55.0454841+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:34:32.6870132+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:36:04.0681114+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:38:27.9449512+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:45:36.1775619+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:46:50.4234498+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:50:40.6927135+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T08:50:52.1232452+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-09T12:05:47.5685806+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:20:00.1638409+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:21:44.2383303+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:22:18.6882669+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:22:50.6041254+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:23:14.3401683+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:46:55.2790184+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T11:47:20.6574070+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:03:11.4195214+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:03:54.9880786+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:07:41.1536833+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:08:28.6938148+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:22:07.2840940+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:22:27.1402903+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:24:00.3126352+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:24:24.8884357+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T12:25:03.0013889+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:33:05.4593442+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:35:35.5902138+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:37:35.1555259+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:38:21.9479709+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:50:36.7433088+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:51:08.2738948+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:52:03.0104046+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:53:56.8032818+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:56:04.1489022+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:56:46.2550774+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T19:57:23.2363789+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:00:50.5201866+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:09:42.8984020+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:10:24.0715698+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:35:52.3883174+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:36:02.0557115+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:36:31.0538502+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:37:00.8293725+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:37:14.6834702+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:42:27.3676063+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:44:47.8600835+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:46:07.9190601+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:46:29.4379574+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:46:40.8245022+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:47:13.4631312+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
|
||||
|
||||
|
||||
|
||||
Info 2025-02-10T20:47:47.8657218+08:00
|
||||
Program StgSharpDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Started.
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
@@ -1,13 +0,0 @@
|
||||
#version 430 core
|
||||
|
||||
in vec3 texCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = texture(tex, texCoord.xy);
|
||||
//fragColor = vec4(0.099f,0.226f,0.335f,0.0f);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0)in vec3 coord;
|
||||
layout(location = 1)in vec3 tCoord;
|
||||
|
||||
out vec3 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(coord.xyz,1.0f);
|
||||
texCoord = tCoord;
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#version 330 core
|
||||
|
||||
in vec2 TexCoord;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform vec4 color;
|
||||
uniform sampler2D ourTexture;
|
||||
uniform sampler2D ourTexture2;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 tex1 = texture(ourTexture, TexCoord);
|
||||
vec4 tex2 = texture(ourTexture2,TexCoord);
|
||||
FragColor = mix(tex1 * vec4( color.xyz, 1.0), tex2, 0.2) /* *vec4( TexColor,1.0) /**/;
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec3 aPos;
|
||||
layout(location = 1) in vec3 aColor;
|
||||
layout(location = 2) in vec2 aTextCoord;
|
||||
|
||||
out vec2 TexCoord;
|
||||
|
||||
uniform mat4x4 camera;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
TexCoord = aTextCoord;
|
||||
vec4 temp = vec4(aPos.xyz,1.0);
|
||||
gl_Position = /**/ camera * /**/ temp;
|
||||
}
|
||||
|
||||
//struct
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#version 460 core
|
||||
|
||||
uniform float time;
|
||||
|
||||
out vec3 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
fragColor = vec3( 0.5f,0.336f,mod( (0.9961f + time),1.0f) );
|
||||
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
#version 460 core
|
||||
|
||||
|
||||
layout(location = 0) in vec3 singleCoord;
|
||||
layout(location = 1) in vec3 locations;
|
||||
layout(location = 2) in float rotation;
|
||||
layout(location = 3) in float scale;
|
||||
|
||||
uniform mat4x4 Camera;
|
||||
|
||||
void main()
|
||||
{
|
||||
/**/
|
||||
mat4x4 scalingMat = mat4x4
|
||||
(
|
||||
scale,0,0,0,
|
||||
0,scale,0,0,
|
||||
0,0,scale,0,
|
||||
0,0,0,1
|
||||
);
|
||||
/**/
|
||||
/**/
|
||||
|
||||
mat4x4 rotationMat = mat4x4
|
||||
(
|
||||
cos(rotation),-sin(rotation),0,0,
|
||||
sin(rotation),cos(rotation),0,0,
|
||||
0,0,1,0,
|
||||
0,0,0,1
|
||||
);
|
||||
|
||||
/**/
|
||||
|
||||
gl_Position = Camera * ( rotationMat * scalingMat * vec4( singleCoord.xyz , 1) + vec4( locations.xyz , 0));
|
||||
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,43 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"StgSharp.Common/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CSharp": "4.7.0",
|
||||
"System.Runtime.CompilerServices.Unsafe": "6.1.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.Common.dll": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.1.0": {}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharp.Common/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==",
|
||||
"path": "microsoft.csharp/4.7.0",
|
||||
"hashPath": "microsoft.csharp.4.7.0.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-5o/HZxx6RVqYlhKSq8/zronDkALJZUT2Vz0hx43f0gwe8mwlM0y2nYlqdBwLMzr262Bwvpikeb/yEwkAa5PADg==",
|
||||
"path": "system.runtime.compilerservices.unsafe/6.1.0",
|
||||
"hashPath": "system.runtime.compilerservices.unsafe.6.1.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,648 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>StgSharp.Common</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:StgSharp.Commom.Collections.IBidirectionalDictionary`2.Contains(`1)">
|
||||
<summary>
|
||||
Determines whether the <see cref="T:StgSharp.Commom.Collections.IBidirectionalDictionary`2" /> contains
|
||||
the specified key.
|
||||
</summary>
|
||||
<param _name="key"> The value to locate in the <see cref="T:StgSharp.Commom.Collections.IBidirectionalDictionary`2" />. </param>
|
||||
<returns>
|
||||
true if the <see cref="T:StgSharp.Commom.Collections.IBidirectionalDictionary`2" /> contains an element
|
||||
with the specified key; otherwise, false.
|
||||
</returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Commom.Collections.IBidirectionalDictionary`2.Contains(`0)">
|
||||
<summary>
|
||||
Determines whether the <see cref="T:StgSharp.Commom.Collections.IBidirectionalDictionary`2" /> contains
|
||||
the specified key.
|
||||
</summary>
|
||||
<param _name="key"> The value to locate in the <see cref="T:StgSharp.Commom.Collections.IBidirectionalDictionary`2" />. </param>
|
||||
<returns>
|
||||
true if the <see cref="T:StgSharp.Commom.Collections.IBidirectionalDictionary`2" /> contains an element
|
||||
with the specified key; otherwise, false.
|
||||
</returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Collections.ListSegment`1">
|
||||
<summary>
|
||||
Part of a collection. This contains a direct reference to origin collection,
|
||||
so all change to origin collection will be reflected in this object.
|
||||
</summary>
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:StgSharp.StgSharp.InitGL(System.Int32,System.Int32)">
|
||||
<summary>
|
||||
CustomizeInit an instance of OpenGL program, This method should be called before any
|
||||
other StgSharp api.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.StgSharp.version">
|
||||
<summary>
|
||||
Version of current StgSharp platform. Main version represent in hundred's digit, and sub
|
||||
version represent in ten's digit.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.StgSharp.WriteLog(System.String,StgSharp.LogType)">
|
||||
<summary>
|
||||
Write a log message to log file, and mark the _level of this message.
|
||||
</summary>
|
||||
<param _name="message"> A string contains information of how current evironment runs. </param>
|
||||
<param _name="logType"> The severity of current message. </param>
|
||||
</member>
|
||||
<member name="T:StgSharp.Internal.Serializer">
|
||||
<summary>
|
||||
A class contains a sets of methods to serialize several types
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Internal.Area">
|
||||
<summary>
|
||||
An independent storage area, used as the only folder type in root folder. Contains several
|
||||
<see cref="T:StgSharp.Internal.SSD" /> files reference as virtual disc. Data is actually stored in <see
|
||||
cref="T:StgSharp.Internal.SSD" />s in certain RAID mode.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Internal.GLclampf">
|
||||
<summary>
|
||||
OpenGL numeric type. An IEEE-754 floating-point value, clamped to the range [0,1].
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Internal.GLclampd">
|
||||
<summary>
|
||||
OpenGL numeric type. An IEEE-754 double precision floating-point value, clamped to the range
|
||||
[0,1].
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.X">
|
||||
<summary>
|
||||
X position of an enenmy entity
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.Y">
|
||||
<summary>
|
||||
Y position of an enemy entity
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.CollisionSensor">
|
||||
<summary>
|
||||
A sensor used for checking out if a bullet hit a player or something else
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.IEntity.Location">
|
||||
<summary>
|
||||
A 2D vector presenting the position of an enemy entity, position can also be visited by
|
||||
X, Y
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.UnusedVertexException">
|
||||
<summary>
|
||||
当几何体调用了过多的CalcVec方法时,产生UnusedVertexException异常
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:StgSharp.Geometries.PartialPlainCoordinate.origin">
|
||||
<summary>
|
||||
The origin of this coordinate.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Geometries.PartialPlainCoordinate.axis_H">
|
||||
<summary>
|
||||
The horizontial axis of the coordinate. Point to the right direction.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Geometries.PartialPlainCoordinate.axis_V">
|
||||
<summary>
|
||||
The vertical axis of the coordinate. Point to the top direction.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.PlainGeometry">
|
||||
<summary>
|
||||
Plain geometry only contains straight sides.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Geometries.Rectangle.MovCenter(System.UInt32)">
|
||||
<summary>
|
||||
Calculate movement to center
|
||||
</summary>
|
||||
<param _name="tick"> CurrentBlueprint time tick </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Geometries.Square">
|
||||
<summary>
|
||||
A square
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Math.Vec2">
|
||||
<summary>
|
||||
A two dimension vector defined by two elements. Vec2Ds in StgSharp are default used as colum
|
||||
vector.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Linear.Orthogonalize(StgSharp.Math.Vec3@,StgSharp.Math.Vec3@)">
|
||||
<summary>
|
||||
Orthogonalize two <see cref="T:StgSharp.Math.Vec3" />s, let their length be 1 and perpendicular to each
|
||||
other.
|
||||
</summary>
|
||||
<param _name="source"></param>
|
||||
<param _name="target"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.ASin(System.Single)">
|
||||
<summary>
|
||||
Reurns the value of ArcSin(x)
|
||||
</summary>
|
||||
<param _name="x"> The sine value of the angle </param>
|
||||
<returns></returns>
|
||||
<exception cref="T:System.ArgumentException"></exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.Exp(System.Single)">
|
||||
<summary>
|
||||
Get the value of E ^ x;
|
||||
</summary>
|
||||
<param _name="x"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.Log(System.Single)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param _name="x"></param>
|
||||
<returns>
|
||||
Returns the value of ln(x).
|
||||
</returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.Pow(System.Single,System.Single)">
|
||||
<summary>
|
||||
calculate the value of x^y
|
||||
</summary>
|
||||
<param _name="x"></param>
|
||||
<param _name="y"></param>
|
||||
<returns> Returns the value of x^y </returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.LowProceisionRandom">
|
||||
<summary>
|
||||
returns a random float number between 0 and 1.
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.Random``1">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Math.Scaler.RandomSeed">
|
||||
<summary>
|
||||
Generates a random seed in int value.
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.BufferObjectBase">
|
||||
<summary>
|
||||
Interface of all kinds OpenGL Buffer objects
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.Graphics.BufferObjectBase.Item(System.Int32)">
|
||||
<summary>
|
||||
Get the only handle to one of the Object instance
|
||||
</summary>
|
||||
<param _name="index"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.BufferObjectBase.Bind(System.Int32)">
|
||||
<summary>
|
||||
Bind a Buffer instance to OpenGL
|
||||
</summary>
|
||||
<param _name="index"> Index of handle of the object in this instance to be bind </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.BufferObjectBase.ToString">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.glLoader">
|
||||
<summary>
|
||||
Function handler to load an opengl function by searching its _name.
|
||||
</summary>
|
||||
<param _name="name"> the _name of the Opengl function </param>
|
||||
<returns> An Intptr value representing the pointer to the function </returns>
|
||||
</member>
|
||||
<member name="P:StgSharp.Graphics.Image.PixelUpdateCount">
|
||||
<summary>
|
||||
Hash code of time pixels updated last time.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.OpenGL.AutoTextureGL">
|
||||
<summary>
|
||||
A collection of a sets of OpenGL textures. The collection can automatically select one of
|
||||
the texture with minimum costs to upgrade pixels to Buffer. Usually <see
|
||||
cref="T:StgSharp.Graphics.OpenGL.AutoTextureGL" /> is used for <see cref="T:StgSharp.Graphics.IImageProvider" /> loading, but not for
|
||||
target of <see cref="M:StgSharp.Graphics.OpenGL.OpenGLFunction.FrameBufferTexture2d(StgSharp.Graphics.OpenGL.FrameBufferTarget,System.UInt32,StgSharp.Graphics.OpenGL.Texture2DTarget,StgSharp.Graphics.OpenGL.GlHandle,System.Int32)" />.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Graphics.OpenGL.ElementBuffer">
|
||||
<summary>
|
||||
A collection of handle to Element Buffer Object in OpenglFunc. Each <see langword="uint" />
|
||||
value indexed from instance of this class this is the only handle to one Element Buffer
|
||||
Object.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.FrameBuffer.Bind(System.Int32)">
|
||||
<summary>
|
||||
Bind the frame Buffer object with _name frame Buffer to the frame Buffer target specified
|
||||
by target. <see langword="FrameBufferTarget.All" /> will be set as default target.
|
||||
</summary>
|
||||
<param _name="index"> Index of object to be binded in handle set </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.FrameBuffer.Bind(StgSharp.Graphics.OpenGL.FrameBufferTarget,System.Int32)">
|
||||
<summary>
|
||||
Bind the frame Buffer object with _name frame Buffer to the frame Buffer target specified
|
||||
by target. Target of this frame Buffer should be set manually.
|
||||
</summary>
|
||||
<param _name="target"> The frame Buffer target of the binding operation. </param>
|
||||
<param _name="index"> Index of object to be binded in handle set </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.TextureGL.LoadTexture(System.Int32,StgSharp.Graphics.Image)">
|
||||
<summary>
|
||||
Load an <see cref="T:StgSharp.Graphics.Image" /> to certain texture.
|
||||
</summary>
|
||||
<param _name="index"> </param>
|
||||
<param _name="i"> </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.VertexBuffer.Unbind">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.VertexBuffer.WriteMatrixData``1(System.Int32,``0,StgSharp.Graphics.OpenGL.BufferUsage)">
|
||||
<summary>
|
||||
Set _data to current vertex Buffer object
|
||||
</summary>
|
||||
<typeparam _name="T"> Type of bufferData </typeparam>
|
||||
<param _name="index"> Index to find certain VBO in this instance </param>
|
||||
<param _name="bufferData"> Data to write in </param>
|
||||
<param _name="usage"> How OpenGL use these _data, defined by <see cref="T:StgSharp.Graphics.OpenGL.BufferUsage" /></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.VertexBuffer.WriteScalerData``1(System.Int32,``0[],StgSharp.Graphics.OpenGL.BufferUsage)">
|
||||
<summary>
|
||||
Set _data to current vertex Buffer object
|
||||
</summary>
|
||||
<typeparam _name="T"> Type of bufferData </typeparam>
|
||||
<param _name="index"> Index to find certain VBO in this instance </param>
|
||||
<param _name="bufferArray"> Data to write in </param>
|
||||
<param _name="usage"> How OpenGL use these _data, defined by <see cref="T:StgSharp.Graphics.OpenGL.BufferUsage" /></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.VertexBuffer.WriteScalerData``1(System.Int32,System.ReadOnlySpan{``0},StgSharp.Graphics.OpenGL.BufferUsage)">
|
||||
<summary>
|
||||
Set _data to current vertex Buffer object
|
||||
</summary>
|
||||
<typeparam _name="T"> Type of bufferData </typeparam>
|
||||
<param _name="index"> Index to find certain VBO in this instance </param>
|
||||
<param _name="scalerSpan"> A <see cref="T:System.Span`1" /> of _data to write in </param>
|
||||
<param _name="usage"> How OpenGL use these _data, defined by <see cref="T:StgSharp.Graphics.OpenGL.BufferUsage" /></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.VertexBuffer.WriteVectorData``1(System.Int32,System.ReadOnlySpan{``0},StgSharp.Graphics.OpenGL.BufferUsage)">
|
||||
<summary>
|
||||
Set _data to current vertex Buffer object
|
||||
</summary>
|
||||
<typeparam _name="T"> Type of bufferData </typeparam>
|
||||
<param _name="index"> Index to find certain VBO in this instance </param>
|
||||
<param _name="vectorSpan"> A <see cref="T:System.Span`1" /> of _data to write in </param>
|
||||
<param _name="usage"> How OpenGL use these _data, defined by <see cref="T:StgSharp.Graphics.OpenGL.BufferUsage" /></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.VertexBuffer.WriteVectorData``1(System.Int32,``0[],StgSharp.Graphics.OpenGL.BufferUsage)">
|
||||
<summary>
|
||||
Set _data to current vertex Buffer object
|
||||
</summary>
|
||||
<typeparam _name="T"> Type of bufferData </typeparam>
|
||||
<param _name="index"> Index to find certain VBO in this instance </param>
|
||||
<param _name="vectorArray"> A array of _data to write in </param>
|
||||
<param _name="usage"> How OpenGL use these _data, defined by <see cref="T:StgSharp.Graphics.OpenGL.BufferUsage" /></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glManager.LoadGLfunc(System.String)">
|
||||
<summary>
|
||||
Get the function pointer of given OpenGL api _name
|
||||
</summary>
|
||||
<param _name="name"> ContextName of the OpenGL api </param>
|
||||
<returns> The funtion pointer of the api in stream of <see cref="T:System.IntPtr" /></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glManager.LoadOpenGLApiTo(System.IntPtr)">
|
||||
<summary>
|
||||
Load all supported OpenGL APIs and bind them to given <see cref="T:StgSharp.MVVM.ViewPort" />.
|
||||
</summary>
|
||||
<param _name="contextHandle"> The handle to current OpenGL viewPortDisplay </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.OpenGLFunction.BindFrameBuffer(StgSharp.Graphics.OpenGL.FrameBufferTarget,StgSharp.Graphics.OpenGL.GlHandle)">
|
||||
<summary>
|
||||
Bind a frame Buffer to a frame Buffer target Same function as <see
|
||||
href="https://docs._gl/gl3/glBindFramebuffer">glBindFramebuffer</see>.
|
||||
</summary>
|
||||
<param _name="target"> The frame Buffer target of the binding operation. </param>
|
||||
<param _name="handle"> The handle of the frame Buffer object to bind. </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.OpenGLFunction.DeleteRenderBuffer(StgSharp.Graphics.OpenGL.GlHandle)">
|
||||
<summary>
|
||||
Delete a render Buffer object Very simlilar function as <see
|
||||
href="https://docs.gl/gl3/glDeleteRenderbuffers">glDeleteRenderbuffers</see>. The only
|
||||
deifference is that this mehtod can only delete one renderbuffer at the same time.
|
||||
</summary>
|
||||
<param _name="bufferHandle"> Handle to Buffer to delete. </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.CreateElementBuffer(System.Int32)">
|
||||
<summary>
|
||||
Create a set of <see cref="T:StgSharp.Graphics.OpenGL.ElementBuffer" />.
|
||||
</summary>
|
||||
<param _name="count"> Amount of EBO to be created. </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.CreateTexture(System.Int32)">
|
||||
<summary>
|
||||
Create a sets of <see cref="T:StgSharp.Graphics.OpenGL.TextureGL" />
|
||||
</summary>
|
||||
<param _name="count"> Amount of textures to be created. </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.CreateVertexArray(System.Int32)">
|
||||
<summary>
|
||||
Create a set of <see cref="T:StgSharp.Graphics.OpenGL.VertexArray" />.
|
||||
</summary>
|
||||
<param _name="count"> Amount of VAO to be created. </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.CreateVertexBuffer(System.Int32)">
|
||||
<summary>
|
||||
Create a set of <see cref="T:StgSharp.Graphics.OpenGL.VertexBuffer" />.
|
||||
</summary>
|
||||
<param _name="count"> Amount of Object to be created. </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.InitializeContext">
|
||||
<summary>
|
||||
Initialize an opengl context and load all opengl functions.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.MakeAsCurrentContext">
|
||||
<summary>
|
||||
Initialize an OpenGl viewPortDisplay if current form has not been binded to any
|
||||
viewPortDisplay. and set the viewPortDisplay binded to current form as current OpenGL
|
||||
viewPortDisplay.
|
||||
</summary>
|
||||
<exception cref="T:System.Exception">
|
||||
Something goes wrong and StgSharp fails in creating a new OpenGL viewPortDisplay.
|
||||
</exception>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.RenderEnd">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.RenderStart">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.glRender.CreateShaderProgram">
|
||||
<summary>
|
||||
Create an instance of <see cref="T:StgSharp.Graphics.OpenGL.Shader" /> program
|
||||
</summary>
|
||||
<returns> New instance of <see cref="T:StgSharp.Graphics.OpenGL.Shader" /> instance. </returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.Shader.AttachTo(System.Int32,StgSharp.Graphics.OpenGL.ShaderProgram)">
|
||||
<summary>
|
||||
Attach one shader code to a shader program.
|
||||
</summary>
|
||||
<param _name="target"> Shader program to attach </param>
|
||||
<param _name="index"> Index of shader code in current shader code set. </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.#ctor(StgSharp.Graphics.OpenGL.glRender)">
|
||||
<summary>
|
||||
CustomizeInit a program with no shader attached.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.GetUniform``1(System.String)">
|
||||
<summary>
|
||||
Get a uniform form current shader, the value type of the uniform should be provided.
|
||||
</summary>
|
||||
<param _name="name"> ContextName of the Uniform in shader code </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.GetUniform``2(System.String)">
|
||||
<summary>
|
||||
Get a uniform form current shader, the value type of the uniform should be provided.
|
||||
</summary>
|
||||
<param _name="name"> ContextName of the Uniform in shader code </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.GetUniform``3(System.String)">
|
||||
<summary>
|
||||
Get a uniform form current shader, the value type of the uniform should be provided.
|
||||
</summary>
|
||||
<param _name="name"> ContextName of the Uniform in shader code </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.GetUniform``4(System.String)">
|
||||
<summary>
|
||||
Get a uniform form current shader, the value type of the uniform should be provided.
|
||||
</summary>
|
||||
<param _name="name"> ContextName of the Uniform in shader code </param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.Link">
|
||||
<summary>
|
||||
Link the shader to current viewPortDisplay.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.OpenGL.ShaderProgram.Use">
|
||||
<summary>
|
||||
Let the current viewPortDisplay use this shader.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.ShaderEdit.IglConvertable.DisplayGLtypeDefinition">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.ShaderEdit.IglConvertable.GainAllUniforms(StgSharp.Graphics.OpenGL.ShaderProgram,System.String[])">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.ShaderEdit.IglConvertable.GetConvertedGLtype">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.ShaderEdit.IglConvertable.SetAllUniforms">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.RenderStream.SetSizeLimit(System.Int32,System.Int32,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Set the size limit of current form
|
||||
</summary>
|
||||
<param _name="minWidth"> Minimum width of current form </param>
|
||||
<param _name="minHeight"> Minimum height of current form </param>
|
||||
<param _name="maxWidth"> Maximum width of current form </param>
|
||||
<param _name="maxHeight"> Maximum height of current form </param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.RenderStream.NativeCameraUniform(StgSharp.Graphics.OpenGL.ShaderProgram,System.String)">
|
||||
<summary>
|
||||
Get <see cref="T:StgSharp.Graphics.OpenGL.Uniform`1" />(TView is <see cref="T:StgSharp.Math.Matrix44" />) uniform from a shader.
|
||||
This uniform will be used as projection matrix of this camera. Additionally, for multi-
|
||||
shader rendering, each shader requires a uniform, so do not ignore return value of this
|
||||
method.
|
||||
</summary>
|
||||
<param _name="source"> Shader using this camera </param>
|
||||
<param _name="name"> ContextName of projection camera named in shader </param>
|
||||
<returns>
|
||||
<see cref="T:StgSharp.Graphics.OpenGL.Uniform`1" />(TView is <see cref="T:StgSharp.Math.Matrix44" />) representing projection
|
||||
matrix in shader program.
|
||||
</returns>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.RenderStream.RenderStart">
|
||||
<summary>
|
||||
Marking the start of current render operations, and set this renser context as current.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.RenderStream.RenderEnd">
|
||||
<summary>
|
||||
Marking the end of current render operations, and release the binding of this renser
|
||||
context to current, making it available for another thread as current.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Graphics.Camera.GainAllUniforms(StgSharp.Graphics.OpenGL.ShaderProgram,System.String[])">
|
||||
<summary>
|
||||
Get all uniform related to this <see cref="T:StgSharp.Graphics.Camera" />.
|
||||
</summary>
|
||||
<param _name="source"> Shader program requires this camera. </param>
|
||||
<param _name="uniformName">
|
||||
ContextName of all related uniforms. If you fallow form from <see
|
||||
cref="M:StgSharp.Graphics.ShaderEdit.IglConvertable.DisplayGLtypeDefinition" />
|
||||
</param>
|
||||
<exception cref="T:System.ArgumentException"></exception>
|
||||
</member>
|
||||
<member name="P:StgSharp.Threading.ThreadHelper.EmptyThread">
|
||||
<summary>
|
||||
An individual thread doing nothing, and its <see cref="P:System.Threading.Thread.IsAlive" /> <see
|
||||
langword="property" /> always returns false.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Blueprint.BlueprintSchedueler">
|
||||
<summary>
|
||||
A sets of complex logic designed for running in multi threads environment. Warning: do not
|
||||
run a <see cref="T:StgSharp.Blueprint.BlueprintSchedueler" /> instance in multi threads more than once.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Blueprint.BlueprintNode">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<risk>
|
||||
Reset pipeline has risk, this operation is a direct operation to port in current node, the
|
||||
port on the other node cannot get the change.
|
||||
</risk>
|
||||
</member>
|
||||
<member name="P:StgSharp.Blueprint.BlueprintRunner.IsValidCalling">
|
||||
<summary>
|
||||
Only the fallowing occasions of calling are valid:
|
||||
1. no bp is running or the only bp is quitting.
|
||||
2. calling from the main thread and the current running bp.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:StgSharp.Timing.TimeSpanProvider">
|
||||
<summary>
|
||||
A microsecond-accuracy timer. It will refresh every a certain time span.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.Timing.TimeSpanProvider.#ctor(System.Int64,StgSharp.Timing.TimeSourceProviderBase)">
|
||||
<summary>
|
||||
Create a new <see cref="T:StgSharp.Timing.TimeSpanProvider" /> and define the length of time span. Length
|
||||
of a single time span is defined in microseconds.
|
||||
</summary>
|
||||
<param _name="spanMicroSeconds"></param>
|
||||
<param _name="provider"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Timing.TimeSpanProvider.#ctor(System.Double,StgSharp.Timing.TimeSourceProviderBase)">
|
||||
<summary>
|
||||
Create a new <see cref="T:StgSharp.Timing.TimeSpanProvider" /> and define the length of time span. Length
|
||||
of a single time span is defined in seconds.
|
||||
</summary>
|
||||
<param _name="spanSeconds"></param>
|
||||
<param _name="provider"></param>
|
||||
</member>
|
||||
<member name="M:StgSharp.Timing.TimeSpanProvider.#ctor(System.Int64,System.Int64,StgSharp.Timing.TimeSourceProviderBase)">
|
||||
<summary>
|
||||
Create a new <see cref="T:StgSharp.Timing.TimeSpanProvider" /> and define the length of time span. Length
|
||||
of a single time span is defined in microseconds.
|
||||
</summary>
|
||||
<param _name="spanLength"></param>
|
||||
<param _name="maxSpan"></param>
|
||||
<param _name="provider"></param>
|
||||
</member>
|
||||
<member name="P:StgSharp.Timing.TimeSpanProvider.DefaultProvider">
|
||||
<summary>
|
||||
Time source provider provided in <see cref="T:StgSharp.StgSharp" /> internal framework.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.MVVM.ViewModel.ViewModelBase.UseViewModel(System.String)">
|
||||
<summary>
|
||||
CustomizeInit this form and render it on screen, and respond with operation
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.MVVM.ViewModel.ViewModelBase.Height">
|
||||
<summary>
|
||||
Height of this form, represent in <see cref="T:System.Int32" />
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.MVVM.ViewModel.ViewModelBase.Width">
|
||||
<summary>
|
||||
Width of this form, represent in <see cref="T:System.Int32" />
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:StgSharp.MVVM.ViewModel.ViewModelBase.Size">
|
||||
<summary>
|
||||
Width of this form, represent in <see cref="T:System.Int32" />
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.MVVM.ViewModel.ViewModelBase.SetSizeLimit(StgSharp.Math.Vec2,StgSharp.Math.Vec2)">
|
||||
<summary>
|
||||
Set the size limit of current form
|
||||
</summary>
|
||||
<param _name="minSize">
|
||||
Minimum size of current form. In form of a <see cref="T:StgSharp.Math.Vec2" /> of (width,height)
|
||||
</param>
|
||||
<param _name="maxSize">
|
||||
Maximum size of current form. In form of a <see cref="T:StgSharp.Math.Vec2" /> of (width,height)
|
||||
</param>
|
||||
</member>
|
||||
<member name="M:StgSharp.MVVM.ViewModel.ViewModelBase.SetSizeLimit(System.Int32,System.Int32,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
Set the size limit of current form
|
||||
</summary>
|
||||
<param _name="minWidth"> Minimum width of current form </param>
|
||||
<param _name="minHeight"> Minimum height of current form </param>
|
||||
<param _name="maxWidth"> Maximum width of current form </param>
|
||||
<param _name="maxHeight"> Maximum height of current form </param>
|
||||
</member>
|
||||
<member name="T:StgSharp.MVVM.View.ViewBase">
|
||||
<summary>
|
||||
ViewBase is the base type for all view types, providing context binding and control element
|
||||
binding. A complete view should contain one complete <see cref="T:StgSharp.MVVM.View.ViewBase.ViewDesigner`1" />, <see
|
||||
cref="T:StgSharp.MVVM.View.ViewBase.ViewRender`1" />, and <see cref="!:ViewResponder" />, which provide layout
|
||||
descriptions of control elements, user responses, and rendering implementations in the view.
|
||||
Data between instances of <see cref="T:StgSharp.MVVM.View.ViewBase.ViewDesigner`1" />, <see cref="T:StgSharp.MVVM.View.ViewBase.ViewRender`1" />,
|
||||
and <see cref="T:StgSharp.MVVM.View.ViewBase.ViewResponder`1" /> is shared through <see cref="T:StgSharp.MVVM.View.ViewBase" />.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:StgSharp.MVVM.View.ViewBase.GetKeyStatus(StgSharp.KeyboardKey)">
|
||||
<summary>
|
||||
Get the status of a certain key on the keyboard.
|
||||
</summary>
|
||||
<param _name="key"></param>
|
||||
<returns><see cref="T:StgSharp.KeyStatus" /> representing if a key is pressed or released. </returns>
|
||||
</member>
|
||||
<member name="T:StgSharp.MVVM.View.ViewBase.ViewDesigner`1">
|
||||
<summary>
|
||||
ViewDesigner provides descriptions of various controls in the view, binds the controls
|
||||
to specific user actions and behaviors, and describes the layout and interactions of
|
||||
each control.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,262 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"StgSharpDebug/1.0.0": {
|
||||
"dependencies": {
|
||||
"StgSharp.Common": "1.0.0",
|
||||
"StgSharp.Model": "1.0.0",
|
||||
"StgSharp.Script": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharpDebug.dll": {}
|
||||
}
|
||||
},
|
||||
"CommunityToolkit.HighPerformance/8.4.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/CommunityToolkit.HighPerformance.dll": {
|
||||
"assemblyVersion": "8.4.0.0",
|
||||
"fileVersion": "8.4.0.1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Analyzers/3.11.0": {},
|
||||
"Microsoft.CodeAnalysis.Common/4.13.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CodeAnalysis.Analyzers": "3.11.0",
|
||||
"System.Collections.Immutable": "8.0.0",
|
||||
"System.Reflection.Metadata": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.CodeAnalysis.dll": {
|
||||
"assemblyVersion": "4.13.0.0",
|
||||
"fileVersion": "4.1300.25.12011"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"lib/net8.0/cs/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "cs"
|
||||
},
|
||||
"lib/net8.0/de/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "de"
|
||||
},
|
||||
"lib/net8.0/es/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "es"
|
||||
},
|
||||
"lib/net8.0/fr/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "fr"
|
||||
},
|
||||
"lib/net8.0/it/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "it"
|
||||
},
|
||||
"lib/net8.0/ja/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "ja"
|
||||
},
|
||||
"lib/net8.0/ko/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "ko"
|
||||
},
|
||||
"lib/net8.0/pl/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "pl"
|
||||
},
|
||||
"lib/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "pt-BR"
|
||||
},
|
||||
"lib/net8.0/ru/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "ru"
|
||||
},
|
||||
"lib/net8.0/tr/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "tr"
|
||||
},
|
||||
"lib/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "zh-Hans"
|
||||
},
|
||||
"lib/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "zh-Hant"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CodeAnalysis.CSharp/4.13.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CodeAnalysis.Analyzers": "3.11.0",
|
||||
"Microsoft.CodeAnalysis.Common": "4.13.0",
|
||||
"System.Collections.Immutable": "8.0.0",
|
||||
"System.Reflection.Metadata": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.CodeAnalysis.CSharp.dll": {
|
||||
"assemblyVersion": "4.13.0.0",
|
||||
"fileVersion": "4.1300.25.12011"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"lib/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "cs"
|
||||
},
|
||||
"lib/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "de"
|
||||
},
|
||||
"lib/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "es"
|
||||
},
|
||||
"lib/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "fr"
|
||||
},
|
||||
"lib/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "it"
|
||||
},
|
||||
"lib/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "ja"
|
||||
},
|
||||
"lib/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "ko"
|
||||
},
|
||||
"lib/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "pl"
|
||||
},
|
||||
"lib/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "pt-BR"
|
||||
},
|
||||
"lib/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "ru"
|
||||
},
|
||||
"lib/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "tr"
|
||||
},
|
||||
"lib/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "zh-Hans"
|
||||
},
|
||||
"lib/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "zh-Hant"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {},
|
||||
"System.Collections.Immutable/8.0.0": {},
|
||||
"System.Reflection.Metadata/8.0.0": {
|
||||
"dependencies": {
|
||||
"System.Collections.Immutable": "8.0.0"
|
||||
}
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.1.0": {},
|
||||
"StgSharp.Common/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CSharp": "4.7.0",
|
||||
"System.Runtime.CompilerServices.Unsafe": "6.1.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.Common.dll": {
|
||||
"assemblyVersion": "1.0.0",
|
||||
"fileVersion": "1.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StgSharp.Model/1.0.0": {
|
||||
"dependencies": {
|
||||
"StgSharp.Common": "1.0.0",
|
||||
"StgSharp.Script": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.Model.dll": {
|
||||
"assemblyVersion": "1.0.0",
|
||||
"fileVersion": "1.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"StgSharp.Script/1.0.0": {
|
||||
"dependencies": {
|
||||
"CommunityToolkit.HighPerformance": "8.4.0",
|
||||
"Microsoft.CodeAnalysis.CSharp": "4.13.0",
|
||||
"StgSharp.Common": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.Script.dll": {
|
||||
"assemblyVersion": "1.0.0",
|
||||
"fileVersion": "1.0.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharpDebug/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"CommunityToolkit.HighPerformance/8.4.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-flxspiBs0G/0GMp7IK2J2ijV9bTG6hEwFc/z6ekHqB6nwRJ4Ry2yLdx+TkbCUYFCl4XhABkAwomeKbT6zM2Zlg==",
|
||||
"path": "communitytoolkit.highperformance/8.4.0",
|
||||
"hashPath": "communitytoolkit.highperformance.8.4.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Analyzers/3.11.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-v/EW3UE8/lbEYHoC2Qq7AR/DnmvpgdtAMndfQNmpuIMx/Mto8L5JnuCfdBYtgvalQOtfNCnxFejxuRrryvUTsg==",
|
||||
"path": "microsoft.codeanalysis.analyzers/3.11.0",
|
||||
"hashPath": "microsoft.codeanalysis.analyzers.3.11.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Common/4.13.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-T8nRl4mAUY4mhdYM4U2ra2vP2EL+ol8Yqwo0gwC/V55vmlXq9NxdIkZJynTpTL1uX/jHijJ90AeOEx4lf7OwzQ==",
|
||||
"path": "microsoft.codeanalysis.common/4.13.0",
|
||||
"hashPath": "microsoft.codeanalysis.common.4.13.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.CSharp/4.13.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-BsH7Vijbj9IL7Fj4k/ysZSVyLGFqr75wmdFGwCKWJvSjnA1xwPaQ3hkB2BQdHOt5CpEYA6Q0I6Oo5sDTDHqHsg==",
|
||||
"path": "microsoft.codeanalysis.csharp/4.13.0",
|
||||
"hashPath": "microsoft.codeanalysis.csharp.4.13.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CSharp/4.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==",
|
||||
"path": "microsoft.csharp/4.7.0",
|
||||
"hashPath": "microsoft.csharp.4.7.0.nupkg.sha512"
|
||||
},
|
||||
"System.Collections.Immutable/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-AurL6Y5BA1WotzlEvVaIDpqzpIPvYnnldxru8oXJU2yFxFUy3+pNXjXd1ymO+RA0rq0+590Q8gaz2l3Sr7fmqg==",
|
||||
"path": "system.collections.immutable/8.0.0",
|
||||
"hashPath": "system.collections.immutable.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Reflection.Metadata/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ptvgrFh7PvWI8bcVqG5rsA/weWM09EnthFHR5SCnS6IN+P4mj6rE1lBDC4U8HL9/57htKAqy4KQ3bBj84cfYyQ==",
|
||||
"path": "system.reflection.metadata/8.0.0",
|
||||
"hashPath": "system.reflection.metadata.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-5o/HZxx6RVqYlhKSq8/zronDkALJZUT2Vz0hx43f0gwe8mwlM0y2nYlqdBwLMzr262Bwvpikeb/yEwkAa5PADg==",
|
||||
"path": "system.runtime.compilerservices.unsafe/6.1.0",
|
||||
"hashPath": "system.runtime.compilerservices.unsafe.6.1.0.nupkg.sha512"
|
||||
},
|
||||
"StgSharp.Common/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"StgSharp.Model/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"StgSharp.Script/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>StgSharpDebug</name>
|
||||
</assembly>
|
||||
<members>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
-149
@@ -1,149 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"StgSharp.TerminalDialogue/1.0.0": {
|
||||
"dependencies": {
|
||||
"Terminal.Gui": "2.0.0-v2-develop.2329"
|
||||
},
|
||||
"runtime": {
|
||||
"StgSharp.TerminalDialogue.dll": {}
|
||||
}
|
||||
},
|
||||
"ColorHelper/1.8.1": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/ColorHelper.dll": {
|
||||
"assemblyVersion": "1.8.1.0",
|
||||
"fileVersion": "1.8.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.IO.Abstractions/21.0.22": {
|
||||
"dependencies": {
|
||||
"TestableIO.System.IO.Abstractions": "21.0.22",
|
||||
"TestableIO.System.IO.Abstractions.Wrappers": "21.0.22"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.IO.Abstractions.dll": {
|
||||
"assemblyVersion": "21.0.0.0",
|
||||
"fileVersion": "21.0.22.62509"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encodings.Web/8.0.0": {},
|
||||
"System.Text.Json/8.0.4": {
|
||||
"dependencies": {
|
||||
"System.Text.Encodings.Web": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Terminal.Gui/2.0.0-v2-develop.2329": {
|
||||
"dependencies": {
|
||||
"ColorHelper": "1.8.1",
|
||||
"System.IO.Abstractions": "21.0.22",
|
||||
"System.Text.Json": "8.0.4",
|
||||
"Wcwidth": "2.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Terminal.Gui.dll": {
|
||||
"assemblyVersion": "2.0.0.0",
|
||||
"fileVersion": "2.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions/21.0.22": {
|
||||
"runtime": {
|
||||
"lib/net8.0/TestableIO.System.IO.Abstractions.dll": {
|
||||
"assemblyVersion": "21.0.0.0",
|
||||
"fileVersion": "21.0.22.62509"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions.Wrappers/21.0.22": {
|
||||
"dependencies": {
|
||||
"TestableIO.System.IO.Abstractions": "21.0.22"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/TestableIO.System.IO.Abstractions.Wrappers.dll": {
|
||||
"assemblyVersion": "21.0.0.0",
|
||||
"fileVersion": "21.0.22.62509"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Wcwidth/2.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Wcwidth.dll": {
|
||||
"assemblyVersion": "2.0.0.0",
|
||||
"fileVersion": "2.0.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"StgSharp.TerminalDialogue/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"ColorHelper/1.8.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-rblWXd/02TfwJjX53xEfQnbnDRKxCm09VtavV8JaIcmIFWt9efNf6xTQ3WeXgy/she5R31eRTtnizFoUoDrs5w==",
|
||||
"path": "colorhelper/1.8.1",
|
||||
"hashPath": "colorhelper.1.8.1.nupkg.sha512"
|
||||
},
|
||||
"System.IO.Abstractions/21.0.22": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-DRnFyMIjO1KG9fqUPKV7XDPgECEwrNpsb3OLD0mImViVpRZ5747o7vqrOYbn9AMaQ8eajLeKH0fXQglgH7v42A==",
|
||||
"path": "system.io.abstractions/21.0.22",
|
||||
"hashPath": "system.io.abstractions.21.0.22.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encodings.Web/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==",
|
||||
"path": "system.text.encodings.web/8.0.0",
|
||||
"hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Json/8.0.4": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==",
|
||||
"path": "system.text.json/8.0.4",
|
||||
"hashPath": "system.text.json.8.0.4.nupkg.sha512"
|
||||
},
|
||||
"Terminal.Gui/2.0.0-v2-develop.2329": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-1WRHeZKN5tnF8DUu0vHz5pGZIY9ETwufKbUHCoH3UTcIeOlduhRCpBhTyJWri/fePsUkij2euFMGX2yHfk4h/A==",
|
||||
"path": "terminal.gui/2.0.0-v2-develop.2329",
|
||||
"hashPath": "terminal.gui.2.0.0-v2-develop.2329.nupkg.sha512"
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions/21.0.22": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yq3I8rUjNoo4JTOT3jbGfTM5VfowaSYiooDO2bfvQe6XGVyZiSIzaKyCmSnuUEyuktw6zzuVE1lJnUeDhJWtyQ==",
|
||||
"path": "testableio.system.io.abstractions/21.0.22",
|
||||
"hashPath": "testableio.system.io.abstractions.21.0.22.nupkg.sha512"
|
||||
},
|
||||
"TestableIO.System.IO.Abstractions.Wrappers/21.0.22": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ETpw1B6VOsQ5zbfqxqLKjITnMvB9M0K5/bK8qJc6jih+tnlKQmtnnOPSS+OeKCqsZDYeHxPNp4ytQPJS3R+WXA==",
|
||||
"path": "testableio.system.io.abstractions.wrappers/21.0.22",
|
||||
"hashPath": "testableio.system.io.abstractions.wrappers.21.0.22.nupkg.sha512"
|
||||
},
|
||||
"Wcwidth/2.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-eGZYH/V+X1DwEXrPUlUcAp8pU5a38d8IvaQzq4pclJxF1x8bizssIo4uWc3qxmS64BNGK5WnDxyBYJz84+Msqg==",
|
||||
"path": "wcwidth/2.0.0",
|
||||
"hashPath": "wcwidth.2.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
-12
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,81 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
// file="hlsf-test"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload
|
||||
// Copyright (c) Nitload. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in all
|
||||
// copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
using StgSharp.HighPerformance.Memory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
internal partial class Program
|
||||
{
|
||||
|
||||
public static void TestHlsf()
|
||||
{
|
||||
// HLSF test arena
|
||||
Console.WriteLine(
|
||||
"=== HLSF (Hybrid Layer Segregated Fit Allocator) Single-threaded Stress Test ===\n");
|
||||
HybridLayerSegregatedFitAllocator hlsfAllocator = new HybridLayerSegregatedFitAllocator(1024 * 1024 * 1024);
|
||||
|
||||
// === 简洁交替测试:100次alloc与100次free交替进行,直到触发异常或达到最大循环 ===
|
||||
Console.WriteLine("\n=== 简洁交替测试:100次alloc + 100次free 交替 ===");
|
||||
|
||||
int maxRounds = 10000; // 可调整
|
||||
uint[] sizes = {
|
||||
64u, 128u, 256u, 512u, 1024u
|
||||
};
|
||||
Random rnd = new Random(42);
|
||||
for (int round = 1; round <= maxRounds; round++)
|
||||
{
|
||||
// 100 次分配
|
||||
List<HybridLayerSegregatedFitAllocationHandle> batch = new List<HybridLayerSegregatedFitAllocationHandle>(100);
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
uint sz = sizes[rnd.Next(sizes.Length)];
|
||||
batch.Add(hlsfAllocator.Alloc(sz));
|
||||
Console.WriteLine($"alloced:{i}");
|
||||
}
|
||||
|
||||
// 100 次释放(逆序)
|
||||
for (int i = batch.Count - 1; i >= 0; i--)
|
||||
{
|
||||
hlsfAllocator.Free(batch[i]);
|
||||
Console.WriteLine($"freed:{i}");
|
||||
}
|
||||
if (round % 100 == 0) {
|
||||
Console.WriteLine($"[交替测试] 已完成 {round} 轮 100alloc+100free");
|
||||
}
|
||||
}
|
||||
Console.WriteLine("[交替测试] 正常结束,无异常触发");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
||||
@@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e687473132786f419a48170313782d6779890c3d")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// 由 MSBuild WriteCodeFragment 类生成。
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
c7a54cf0c9346b1d2303832f2bdfcd0cc63200860984ee6a3865dcaab5f056d8
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net6.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = StgSharpDebug
|
||||
build_property.ProjectDir = D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\内核源代码\StgSharpDebug\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
@@ -1,8 +0,0 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +0,0 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
@@ -1,22 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ccef0de6f686f94da655b0e7d854d0acaf907d04")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// 由 MSBuild WriteCodeFragment 类生成。
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
861cc9ff367c93a327af39b5055bdc269a75193aa982e56fea3406d53e5a652c
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user