docs.unity.cn
    Show / Hide Table of Contents

    Class HDComputeThickness

    Class handling the generation of fullscreen thickness

    Inheritance
    Object
    HDComputeThickness
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public sealed class HDComputeThickness

    Fields

    computeThicknessMaxLayer

    Max RT of Thickness we can computed in a single frame

    Declaration
    public static uint computeThicknessMaxLayer
    Field Value
    Type Description
    UInt32

    Properties

    Instance

    Current unique instance

    Declaration
    public static HDComputeThickness Instance { get; }
    Property Value
    Type Description
    HDComputeThickness

    Methods

    GetReindexMap()

    Get a GraphicsBuffer To reindex from LayerIndex to SliceIndex of the TextureArray of Thicknesses.

    Declaration
    public GraphicsBuffer GetReindexMap()
    Returns
    Type Description
    GraphicsBuffer

    The GraphicsBuffer (StructuredArray<uint>[computeThicknessMaxLayer]

    GetThicknessTextureArray()

    Return a TextureArrayHandle of thicknesses computed, the slices count are the layer needed.

    Declaration
    public TextureHandle GetThicknessTextureArray()
    Returns
    Type Description
    TextureHandle

    TextureArray of thicknesses computed.

    SetReindexMap(GraphicsBuffer)

    Set a ComputeBuffer To reindex from LayerIndex to SliceIndex of the TextureArray of Thicknesses.

    Declaration
    public void SetReindexMap(GraphicsBuffer cb)
    Parameters
    Type Name Description
    GraphicsBuffer cb

    The ComputeBuffer (StructuredArray<uint>[computeThicknessMaxLayer]

    SetTextureArray(TextureHandle)

    TextureArray of thicknesses computed.

    Declaration
    public void SetTextureArray(TextureHandle rt)
    Parameters
    Type Name Description
    TextureHandle rt

    TextureArray of thicknesses computed.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023