daily update on 20240620 by nitload youmu
This commit is contained in:
@@ -7,6 +7,7 @@ using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Xml.XPath;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
@@ -63,23 +64,40 @@ namespace StgSharp
|
||||
<fboFrame,ParticleStream>(stream);
|
||||
Blueprint blueprint = new Blueprint();
|
||||
|
||||
BlueprintNode node0 = new BlueprintNode("BufferGenerateStream", rstream);
|
||||
BlueprintNode node1 = new BlueprintNode("MainRenderStream",stream);
|
||||
CrossFrameOperation cross = new CrossFrameOperation(() => Console.Beep(), 60 );
|
||||
|
||||
BlueprintNode node0 = new BlueprintNode("BufferGenerateStream", rstream,true);
|
||||
BlueprintNode node1 = new BlueprintNode("MainRenderStream",stream,true);
|
||||
BlueprintNode node2 = new BlueprintNode("Beep", cross,false);
|
||||
|
||||
node0.AddAfter(blueprint.BeginLayer,
|
||||
"input_1", "input_1");
|
||||
"port_1", "input_1");
|
||||
node0.AddBefore(node1,
|
||||
"output_1", "TextureInput");
|
||||
/**/
|
||||
node1.AddBefore(blueprint.EndLayer,
|
||||
"Output", "output_1");
|
||||
"Output", "port2");
|
||||
node2.AddAfter(blueprint.BeginLayer,
|
||||
"port_2", CrossFrameOperation.InputInterfacesName);
|
||||
/**/
|
||||
/*
|
||||
node1.AddBefore(node2,
|
||||
"Output", CrossFrameOperation.InputInterfacesName);
|
||||
node2.AddAfter(blueprint.BeginLayer,"input_2", CrossFrameOperation.InputInterfacesName);
|
||||
/**/
|
||||
node2.AddBefore(blueprint.EndLayer,
|
||||
CrossFrameOperation.OutputInterfacesName, "port_1");
|
||||
|
||||
blueprint.AddNativeNode(node0);
|
||||
blueprint.AddNativeNode(node1);
|
||||
blueprint.Init(0);
|
||||
blueprint.AddNode(node0,true);
|
||||
blueprint.AddNode(node1, true);
|
||||
blueprint.AddNode(node2, false);
|
||||
blueprint.Init();
|
||||
|
||||
BlueprintRunner.SetMaxTaskCount(1);
|
||||
|
||||
Console.WriteLine(2);
|
||||
|
||||
demoForm.RenderLogic = blueprint;
|
||||
demoForm.GeneralRenderLogic = blueprint;
|
||||
demoForm.Show();
|
||||
StgSharp.Terminate();
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user