Exemple #1
0
 protected void SetBuffer(ComputeParameter buffer, Real[] data)
 {
     buffer.Array = (Real[])data.Clone();
 }
Exemple #2
0
 public ComputeBufferSet(ComputeParameter parmeter, List <ComputeContext> Context, int sellectionIndex)
 {
     Buffer = new ComputeBuffer <Real>(Context[sellectionIndex], parmeter.MemoryMode, parmeter.Array);
 }
Exemple #3
0
 protected ComputeBufferSet ConvertBuffer(ComputeParameter parmeter)
 {
     return(new ComputeBufferSet(parmeter, Context, sellectionIndex));
 }