Table of Contents

Constructor GraphBuffer

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

GraphBuffer(int, int)

Creates a graph buffer with the requested element count and stride.

public GraphBuffer(int count, int stride)

Parameters

count int

Number of elements to allocate in the underlying UnityEngine.ComputeBuffer.

stride int

Size, in bytes, of each element in the underlying UnityEngine.ComputeBuffer.

Remarks

Most Vista graph buffers use a stride of sizeof(float) and pack structured data as flat float arrays.