docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Blit

    Blit(CommandBuffer, RTHandle, RTHandle, Material, int)

    Add a blit command to the context for execution. This changes the active render target in the ScriptableRenderer to destination.

    Declaration
    public void Blit(CommandBuffer cmd, RTHandle source, RTHandle destination, Material material = null, int passIndex = 0)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer to record command for execution.

    RTHandle source

    Source texture or target handle to blit from.

    RTHandle destination

    Destination texture or target handle to blit into. This becomes the renderer active render target.

    Material material

    Material to use.

    int passIndex

    Shader pass to use. Default is 0.

    See Also
    ScriptableRenderer

    Blit(CommandBuffer, ref RenderingData, Material, int)

    Add a blit command to the context for execution. This applies the material to the color target.

    Declaration
    public void Blit(CommandBuffer cmd, ref RenderingData data, Material material, int passIndex = 0)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer to record command for execution.

    RenderingData data

    RenderingData to access the active renderer.

    Material material

    Material to use.

    int passIndex

    Shader pass to use. Default is 0.

    Blit(CommandBuffer, ref RenderingData, RTHandle, Material, int)

    Add a blit command to the context for execution. This applies the material to the color target.

    Declaration
    public void Blit(CommandBuffer cmd, ref RenderingData data, RTHandle source, Material material, int passIndex = 0)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer to record command for execution.

    RenderingData data

    RenderingData to access the active renderer.

    RTHandle source

    Source texture or target identifier to blit from.

    Material material

    Material to use.

    int passIndex

    Shader pass to use. Default is 0.

    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)