docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UseTexture

    UseTexture(in TextureHandle, AccessFlags)

    Declare that this pass uses the input texture.

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

    The texture 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
    TextureHandle

    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)