docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct OptimizedNativeGradient

    Implements
    IDisposable
    Namespace: NativeParticleSystemGradient
    Assembly: solution.dll
    Syntax
    public struct OptimizedNativeGradient : IDisposable

    Fields

    colorSpace

    Declaration
    public ColorSpace colorSpace
    Field Value
    Type Description
    ColorSpace

    colorsOklab

    Declaration
    public NativeArray<float4> colorsOklab
    Field Value
    Type Description
    NativeArray<float4>

    gradientColorKeys

    Declaration
    public NativeArray<NativeGradientColorKey> gradientColorKeys
    Field Value
    Type Description
    NativeArray<NativeGradientColorKey>

    mode

    Declaration
    public GradientMode mode
    Field Value
    Type Description
    GradientMode

    rcp

    Declaration
    public NativeArray<float> rcp
    Field Value
    Type Description
    NativeArray<float>

    Properties

    keyCount

    Declaration
    public readonly int keyCount { get; }
    Property Value
    Type Description
    int

    Methods

    Create(out OptimizedNativeGradient, in NativeGradient, in AllocatorHandle)

    Declaration
    public static void Create(out OptimizedNativeGradient opGradient, in NativeGradient gradient, in AllocatorManager.AllocatorHandle allocatorHandle)
    Parameters
    Type Name Description
    OptimizedNativeGradient opGradient
    NativeGradient gradient
    AllocatorManager.AllocatorHandle allocatorHandle

    Create(out OptimizedNativeGradient, in Gradient, in AllocatorHandle)

    Declaration
    public static void Create(out OptimizedNativeGradient opGradient, in Gradient gradient, in AllocatorManager.AllocatorHandle allocatorHandle)
    Parameters
    Type Name Description
    OptimizedNativeGradient opGradient
    Gradient gradient
    AllocatorManager.AllocatorHandle allocatorHandle

    Dispose()

    Declaration
    public void Dispose()

    Evaluate(float)

    Declaration
    public readonly float4 Evaluate(float time)
    Parameters
    Type Name Description
    float time
    Returns
    Type Description
    float4

    EvaluateAOS(in float8)

    Declaration
    public readonly float4x8 EvaluateAOS(in float8 time)
    Parameters
    Type Name Description
    float8 time
    Returns
    Type Description
    float4x8

    EvaluateAOS(in float4)

    Declaration
    public readonly float4x4 EvaluateAOS(in float4 time)
    Parameters
    Type Name Description
    float4 time
    Returns
    Type Description
    float4x4

    EvaluateBatch(in NativeArray<float>, ref NativeArray<float4>)

    Declaration
    public readonly void EvaluateBatch(in NativeArray<float> times, ref NativeArray<float4> values)
    Parameters
    Type Name Description
    NativeArray<float> times
    NativeArray<float4> values

    EvaluateSOA(in float8)

    Declaration
    public readonly float8x4 EvaluateSOA(in float8 time)
    Parameters
    Type Name Description
    float8 time
    Returns
    Type Description
    float8x4

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2025 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)