docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UseDepthBuffer

    UseDepthBuffer(in TextureHandle, DepthAccess)

    Specify that the pass will use a Texture resource as a depth buffer.

    Declaration
    public TextureHandle UseDepthBuffer(in TextureHandle input, DepthAccess flags)
    Parameters
    Type Name Description
    TextureHandle input

    The Texture resource to use as a depth buffer during the pass.

    DepthAccess flags

    Specify the access level for the depth buffer. This allows you to say whether you will read from or write to the depth buffer, or do both.

    Returns
    Type Description
    TextureHandle

    An updated resource handle to the input resource.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)