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

    Name Description
    ProbesOcclusion

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

    SHCoefficients

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

    SpecCube0_HDR

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

    SpecCube1_HDR

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

    kGlobalsPropertyId

    The unique identifier for kGlobalsPropertyName, retrieved using 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.

    Properties

    Name Description
    Default

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

    Methods

    Name Description
    Equals(object)

    Equals implementation.

    Equals(BatchRendererGroupGlobals)

    Equals implementation.

    GetHashCode()

    GetHashCode implementation.

    Operators

    Name Description
    operator ==(BatchRendererGroupGlobals, BatchRendererGroupGlobals)

    Equality operator implementation.

    operator !=(BatchRendererGroupGlobals, BatchRendererGroupGlobals)

    Not equals operator implementation.

    Extension Methods

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