docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ImportResourceParams

    A helper struct describing the clear behavior of imported textures.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.RenderGraphModule
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public struct ImportResourceParams

    Fields

    clearColor

    The color to clear with on first use. Ignored if clearOnFirstUse==false;

    Declaration
    public Color clearColor
    Field Value
    Type Description
    Color

    clearOnFirstUse

    Clear the imported texture the first time it is used by the graph.

    Declaration
    public bool clearOnFirstUse
    Field Value
    Type Description
    bool

    discardOnLastUse

    Discard the imported texture the last time it is used by the graph. If MSAA enabled, only the multisampled version is discarded while the MSAA surface is always resolved. Fully discarding both multisampled and resolved data is not currently possible.

    Declaration
    public bool discardOnLastUse
    Field Value
    Type Description
    bool

    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)