docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BlitColorAndDepth

    BlitColorAndDepth(RasterCommandBuffer, Texture, RenderTexture, Vector4, float, bool)

    Blit a 2D texture and depth buffer.

    Declaration
    public static void BlitColorAndDepth(RasterCommandBuffer cmd, Texture sourceColor, RenderTexture sourceDepth, Vector4 scaleBias, float mipLevel, bool blitDepth)
    Parameters
    Type Name Description
    RasterCommandBuffer cmd

    Command Buffer used for rendering.

    Texture sourceColor

    Source Texture for color.

    RenderTexture sourceDepth

    Source RenderTexture for depth.

    Vector4 scaleBias

    Scale and bias for sampling the input texture.

    float mipLevel

    Mip level to blit.

    bool blitDepth

    Enable depth blit.

    BlitColorAndDepth(CommandBuffer, Texture, RenderTexture, Vector4, float, bool)

    Declaration
    public static void BlitColorAndDepth(CommandBuffer cmd, Texture sourceColor, RenderTexture sourceDepth, Vector4 scaleBias, float mipLevel, bool blitDepth)
    Parameters
    Type Name Description
    CommandBuffer cmd
    Texture sourceColor
    RenderTexture sourceDepth
    Vector4 scaleBias
    float mipLevel
    bool blitDepth
    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)