Class CopyDepthPass | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CopyDepthPass

    Copy the given depth buffer into the given destination depth buffer.

    You can use this pass to copy a depth buffer to a destination, so you can use it later in rendering. If the source texture has MSAA enabled, the pass uses a custom MSAA resolve. If the source texture does not have MSAA enabled, the pass uses a Blit or a Copy Texture operation, depending on what the current platform supports.

    Inheritance
    System.Object
    ScriptableRenderPass
    CopyDepthPass
    Inherited Members
    ScriptableRenderPass.RegisterShaderPassName(String)
    ScriptableRenderPass.CreateDrawRendererSettings(Camera, SortFlags, RendererConfiguration, Boolean)
    ScriptableRenderPass.SetRenderTarget(CommandBuffer, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction, ClearFlag, Color, TextureDimension)
    ScriptableRenderPass.SetRenderTarget(CommandBuffer, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction, ClearFlag, Color, TextureDimension)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Rendering.LightweightPipeline
    Syntax
    public class CopyDepthPass : ScriptableRenderPass

    Methods

    Execute(ScriptableRenderer, ScriptableRenderContext, ref RenderingData)

    Execute the pass. This is where custom rendering occurs. Specific details are left to the implementation

    Declaration
    public override void Execute(ScriptableRenderer renderer, ScriptableRenderContext context, ref RenderingData renderingData)
    Parameters
    Type Name Description
    ScriptableRenderer renderer

    The currently executing renderer. Contains configuration for the current execute call.

    ScriptableRenderContext context

    Use this render context to issue any draw commands during execution

    RenderingData renderingData

    Current rendering state information

    Overrides
    ScriptableRenderPass.Execute(ScriptableRenderer, ScriptableRenderContext, ref RenderingData)

    FrameCleanup(CommandBuffer)

    Cleanup any allocated data that was created during the execution of the pass.

    Declaration
    public override void FrameCleanup(CommandBuffer cmd)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Use this CommandBuffer to cleanup any generated data

    Overrides
    ScriptableRenderPass.FrameCleanup(CommandBuffer)

    Setup(RenderTargetHandle, RenderTargetHandle)

    Configure the pass with the source and destination to execute on.

    Declaration
    public void Setup(RenderTargetHandle source, RenderTargetHandle destination)
    Parameters
    Type Name Description
    RenderTargetHandle source

    Source Render Target

    RenderTargetHandle destination

    Destination Render Targt

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023