docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UseBuffer

    UseBuffer(in BufferHandle, AccessFlags)

    Declare that this pass uses the input compute buffer.

    Declaration
    BufferHandle UseBuffer(in BufferHandle input, IBaseRenderGraphBuilder.AccessFlags flags = AccessFlags.Read)
    Parameters
    Type Name Description
    BufferHandle input

    The compute buffer resource to use during the pass.

    IBaseRenderGraphBuilder.AccessFlags flags

    A combination of flags indicating how the resource will be used during the pass. Default value is set to AccessFlag.Read

    Returns
    Type Description
    BufferHandle

    A explicitly versioned handle representing the latest version of the pased in texture. Note that except for special cases where you want to refer to a specific version return value is generally discarded.

    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)