docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct WaterSimulationSearchJob

    C# Job that evaluate the height for a set of WaterSearchParameters and returns a set of WaterSearchResult (and stored them into native buffers).

    Implements
    IJobParallelFor
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    [BurstCompile]
    public struct WaterSimulationSearchJob : IJobParallelFor

    Fields

    Name Description
    candidateLocationWSBuffer

    Output native array that holds the set of positions that were used to generate the height value.

    directionBuffer

    Output native array that holds the set of direction for each target position;

    error

    Target error value at which the algorithm should stop.

    errorBuffer

    Output native array that holds the set of horizontal error for each target position.

    excludeSimulation

    Specifies if the search should ignore the simulation.

    includeDeformation

    Specifies if the search job should include the deformations

    maxIterations

    Number of iterations of the search algorithm.

    projectedPositionWSBuffer

    Output native array that holds the set of world space position projected on the water surface along the up vector of the water surface.

    simSearchData

    Input simulation search data produced by the water surface.

    startPositionWSBuffer

    Native array that holds the set of "hint" position that the algorithm starts from.

    stepCountBuffer

    Output native array that holds the set of steps that were executed to find the height.

    targetPositionWSBuffer

    Native array that holds the set of position that the job will need to evaluate the height for.

    Methods

    Name Description
    Execute(int)

    Function that evaluates the height for a given element in the input buffer.

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