docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BatchRendererGroupGlobals

    Contains default values for built-in properties that the user is expected to manually provide for DOTS_INSTANCING_ON shaders. The struct layout matches the unity_DOTSInstanceGlobalValues constant buffer the shader expects the default values in.

    Implements
    IEquatable<BatchRendererGroupGlobals>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Obsolete("BatchRendererGroupGlobals and associated cbuffer are now set automatically by Unity. Setting it manually is no longer necessary or supported.")]
    [Serializable]
    public struct BatchRendererGroupGlobals : IEquatable<BatchRendererGroupGlobals>

    Fields

    ProbesOcclusion

    The default value to use for the unity_ProbesOcclusion built-in shader property.

    Declaration
    public Vector4 ProbesOcclusion
    Field Value
    Type Description
    Vector4

    SHCoefficients

    The default values to use for the built-in spherical harmonics shader properties.

    Declaration
    public SHCoefficients SHCoefficients
    Field Value
    Type Description
    SHCoefficients
    See Also
    SHCoefficients

    SpecCube0_HDR

    The default value to use for the unity_SpecCube0_HDR built-in shader property.

    Declaration
    public Vector4 SpecCube0_HDR
    Field Value
    Type Description
    Vector4

    SpecCube1_HDR

    The default value to use for the unity_SpecCube1_HDR built-in shader property.

    Declaration
    public Vector4 SpecCube1_HDR
    Field Value
    Type Description
    Vector4

    kGlobalsPropertyId

    The unique identifier for kGlobalsPropertyName, retrieved using PropertyToID(string).

    Declaration
    public static readonly int kGlobalsPropertyId
    Field Value
    Type Description
    int
    See Also
    PropertyToID(string)

    kGlobalsPropertyName

    The string name of the constant buffer DOTS_INSTANCING_ON shaders use to read default values for the built-in properties contained in this struct.

    Declaration
    public const string kGlobalsPropertyName = "unity_DOTSInstanceGlobalValues"
    Field Value
    Type Description
    string

    Properties

    Default

    Construct a struct with default values based on the currently active reflection probe and ambient lighting settings.

    Declaration
    public static BatchRendererGroupGlobals Default { get; }
    Property Value
    Type Description
    BatchRendererGroupGlobals

    Methods

    Equals(object)

    Equals implementation.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    Other object to comapre this against.

    Returns
    Type Description
    bool

    True if contents are equal, False otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(BatchRendererGroupGlobals)

    Equals implementation.

    Declaration
    public bool Equals(BatchRendererGroupGlobals other)
    Parameters
    Type Name Description
    BatchRendererGroupGlobals other

    Other BatchRendererGroupGlobals instance to comapre this against.

    Returns
    Type Description
    bool

    True if contents are equal, False otherwise.

    GetHashCode()

    GetHashCode implementation.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Returns a hashcode based on ProbesOcclusion, SpecCube and SH coefficients parameters

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(BatchRendererGroupGlobals, BatchRendererGroupGlobals)

    Equality operator implementation.

    Declaration
    public static bool operator ==(BatchRendererGroupGlobals left, BatchRendererGroupGlobals right)
    Parameters
    Type Name Description
    BatchRendererGroupGlobals left

    Left operand of comparison

    BatchRendererGroupGlobals right

    Right operand of comparison

    Returns
    Type Description
    bool

    True if contents are equal, False otherwise.

    operator !=(BatchRendererGroupGlobals, BatchRendererGroupGlobals)

    Not equals operator implementation.

    Declaration
    public static bool operator !=(BatchRendererGroupGlobals left, BatchRendererGroupGlobals right)
    Parameters
    Type Name Description
    BatchRendererGroupGlobals left

    Left operand of comparison

    BatchRendererGroupGlobals right

    Right operand of comparison

    Returns
    Type Description
    bool

    True if contents are not equal, False otherwise.

    Implements

    IEquatable<T>

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)