docs.unity.cn
    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 to 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 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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
    Syntax
    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
    Boolean

    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
    Int32

    msaaSamples

    The number of msaa samples in the render texture.

    Declaration
    public int msaaSamples
    Field Value
    Type Description
    Int32

    volumeDepth

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

    Declaration
    public int volumeDepth
    Field Value
    Type Description
    Int32

    width

    The width in pixels of the render texture.

    Declaration
    public int width
    Field Value
    Type Description
    Int32

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023