daily update on 20240501 by nitload youmu, tracking blueprint coruptr

This commit is contained in:
YoumuLiu
2024-05-02 05:47:27 +08:00
parent 0cd01ed9dd
commit 6324e578ab
60 changed files with 2564 additions and 307 deletions
@@ -1,6 +1,7 @@
using StgSharp;
using StgSharp.Geometries;
using StgSharp.Graphics;
using StgSharp.Logic;
using StgSharp.Math;
using System;
@@ -9,10 +10,10 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharpDebug
namespace StgSharp
{
public sealed class MainRenderStream : glRenderStream
public class MainRenderStream : glRenderStream
{
private Uniform<float, float, float, float> color;
private ElementBuffer ebo;
@@ -23,11 +24,15 @@ namespace StgSharpDebug
private VertexArray vao;
private VertexBuffer vbo;
protected MainRenderStream(RenderStreamConstructArgs args) : base(args)
public MainRenderStream(RenderStreamConstructArgs args) : base(args)
{
}
protected override string[] InputPortsName => ["input_1"];
protected override string[] OutputPortsName => ["output_1"];
protected override void Deinit()
{
/**/
@@ -37,7 +42,7 @@ namespace StgSharpDebug
/**/
}
protected override void Init()
protected sealed override void Init()
{
SetSizeLimit(800, 800, 800, 800);
@@ -122,7 +127,10 @@ namespace StgSharpDebug
}
protected override void Main()
protected sealed override void Main(
in Dictionary<string, BlueprintPipeline> input,
in Dictionary<string, BlueprintPipeline> output
)
{
GL.ClearColor(0.333f, 0.555f, 0.555f, 1.0f);
@@ -158,6 +166,8 @@ namespace StgSharpDebug
//vao.BindNull();
/**/
BlueprintPipeline.SkipAll(output);
}
protected override void ProcessInput()