Table of Contents

Method CreateSampleBuffer

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

CreateSampleBuffer<T>(int)

Creates a float-packed compute buffer for Vista sample data.

public static ComputeBuffer CreateSampleBuffer<T>(int sampleCount)

Parameters

sampleCount int

Number of samples the buffer must contain.

Returns

ComputeBuffer

A compute buffer sized using the float count of the requested sample type.

Type Parameters

T

Either InstanceSample or PositionSample.