docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)