docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HDComputeThickness

    Class handling the generation of fullscreen thickness

    Inheritance
    object
    HDComputeThickness
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    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
    uint

    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.

    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)