コード例 #1
0
ファイル: QuadTreeCPU.cs プロジェクト: DinnerPlz/LastBeat
        } // a struct respresentaion of the Node class
        public ComputeBuffer NodeTreeToBuffer(Node n)
        {
            unsafe
            {
                int           count = n.ChildNodeCount();
                ComputeBuffer ret   = new ComputeBuffer(count, sizeof(NodeS));

                NodeS[] arr = new NodeS[count];
                arr    = computeOrder(arr, 0, n);
                arr[0] = n.ToNodeS();



                return(ret);
            }
        }