Method GenerateSamples
GenerateSamples<T>(T, int, out JobHandle)
Schedules a multi-threaded job to generate an array of samples
Declaration
public static NativeArray<float> GenerateSamples<T>(T sampler, int sampleCount, out JobHandle jobHandle) where T : struct, ISampler
Parameters
Type | Name | Description |
---|---|---|
T | sampler | The sampler to generate samples from |
int | sampleCount | The number of samples to generate |
JobHandle | jobHandle | The handle of the scheduled job |
Returns
Type | Description |
---|---|
NativeArray<float> | A NativeArray of generated samples |
Type Parameters
Name | Description |
---|---|
T | The type of sampler to sample |