docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateTextureIfInvalid

    CreateTextureIfInvalid(in TextureDesc, ref TextureHandle)

    Create a new Render Graph Texture if the passed handle is invalid and use said handle as output. If the passed handle is valid, no texture is created.

    Declaration
    public void CreateTextureIfInvalid(in TextureDesc desc, ref TextureHandle texture)
    Parameters
    Type Name Description
    TextureDesc desc

    Desc used to create the texture.

    TextureHandle texture

    Texture from which the descriptor should be used.

    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)