docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddMovePass

    AddMovePass(TextureHandle, TextureHandle, string, int)

    Add a new move pass to the Render Graph. This pass moves data from one texture to another. Note that this pass is more limited in functionality than for example doing a blit from one texture to another. It cannot do any type conversions, the textures have to be the same size,... This pass may be optimized away by the RenderGraph depending on the dependencies within the graph. E.g. if the destination resource is the only resource ever using the data in source the graph may decide to directly render to the destination instead of rendering to source and then doing an copy to destination.

    Declaration
    public void AddMovePass(TextureHandle source, TextureHandle destination, string file = "", int line = 0)
    Parameters
    Type Name Description
    TextureHandle source

    Texture to read data from.

    TextureHandle destination

    Texture to copy data into.

    string file

    File name of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it.

    int line

    File line of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it.

    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)