docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateSharedTexture

    CreateSharedTexture(in TextureDesc, bool)

    Create a new Render Graph Shared Texture resource. This texture will be persistent across render graph executions.

    Declaration
    public TextureHandle CreateSharedTexture(in TextureDesc desc, bool explicitRelease = false)
    Parameters
    Type Name Description
    TextureDesc desc

    Creation descriptor of the texture.

    bool explicitRelease

    Set to true if you want to manage the lifetime of the resource yourself. Otherwise the resource will be released automatically if unused for a time.

    Returns
    Type Description
    TextureHandle

    A new TextureHandle.

    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)