docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RenderTargetInfo

    Basic properties of a RTHandle needed by the render graph compiler. It is not always possible to derive these given an RTHandle so the user needs to pass these in.

    We don't use a full RenderTargetDescriptor here as filling out a full descriptor may not be trivial for users and not all members of the descriptor are actually used by the render graph. This struct is the minimum set of info needed by the render graph. If you want to develop some utility framework to work with render textures, etc. it's probably better to use RenderTargetDescriptor.

    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
    [MovedFrom(true, "UnityEngine.Experimental.Rendering.RenderGraphModule", "UnityEngine.Rendering.RenderGraphModule", null)]
    public struct RenderTargetInfo

    Fields

    bindMS

    Set to true if the render texture needs to be bound as a multisampled texture in a shader.

    Declaration
    public bool bindMS
    Field Value
    Type Description
    bool

    format

    The Graphics format of the render texture.

    Declaration
    public GraphicsFormat format
    Field Value
    Type Description
    GraphicsFormat

    height

    The height in pixels of the render texture.

    Declaration
    public int height
    Field Value
    Type Description
    int

    msaaSamples

    The number of msaa samples in the render texture.

    Declaration
    public int msaaSamples
    Field Value
    Type Description
    int

    volumeDepth

    The number of volume/array slices of the render texture.

    Declaration
    public int volumeDepth
    Field Value
    Type Description
    int

    width

    The width in pixels of the render texture.

    Declaration
    public int width
    Field Value
    Type Description
    int

    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)