docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BlitCameraTexture2D

    BlitCameraTexture2D(CommandBuffer, RTHandle, RTHandle, float, bool)

    Blit a RThandle Texture2D RTHandle to another RTHandle. This will properly account for partial usage (in term of resolution) of the texture for the current viewport.

    Declaration
    public static void BlitCameraTexture2D(CommandBuffer cmd, RTHandle source, RTHandle destination, float mipLevel = 0, bool bilinear = false)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command Buffer used for rendering.

    RTHandle source

    Source RTHandle.

    RTHandle destination

    Destination RTHandle.

    float mipLevel

    Mip level to blit.

    bool bilinear

    Enable bilinear filtering.

    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)