Hi guys spend whole day trying to make my head around this one, really only need for one place in my patch, but if anyone willing to help.
so there is generic unzip node
using System;
using System.ComponentModel.Composition;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
using VVVV.Utils.Streams;
using VVVV.Utils.VColor;
using VVVV.Utils.VMath;
namespace VVVV.Nodes.Generic
{
public abstract class Unzip<T> : IPluginEvaluate
{
[Input("Input", BinSize = -2)]
protected IInStream<T> FInputStream;
[Output("Output", IsPinGroup = true)]
protected IInStream<IOutStream<T>> FOutputStreams;
public void Evaluate(int SpreadMax)
This file has been truncated. show original
there is cons node from vux
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using VVVV.PluginInterfaces.V2;
using VVVV.DX11;
using VVVV.PluginInterfaces.V1;
using VVVV.Hosting.Pins;
using VVVV.DX11.Lib.Devices;
using FeralTic.DX11;
using FeralTic.DX11.Resources;
namespace VVVV.DX11.Nodes
{
public class DX11ResourceConsNode<T> : IPluginEvaluate, IDX11ResourceProvider, IPartImportsSatisfiedNotification where T : IDX11Resource
{
[Config("Input Count", DefaultValue = 2, MinValue = 2)]
protected IDiffSpread<int> FInputCount;
This file has been truncated. show original
so far i ended up trying to at list make it work somehow… but it dead broken…
anyone know any example i can use close to unzip or do some snippet to help.
might just point out mistakes… so i can fix it myself…
ValueUnzipTest2.zip (1.9 kB)
pain and struggle…
so… i have BinSize pin and i want to slice input spread across pins
what i have to do?
i end up with this code
for (int i = 0; i < FBin.SliceCount ; i++)
{
for (int j = 0; j < FBin[i](i); j++)
{
var inputSpread = FInputs[i+j](i+j).IOObject;
var outputSpread = FOutputs[i+j](i+j).IOObject;
outputSpread.AssignFrom(inputSpread);
}
}
obviously it’s not working…