docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Configure

    Configure(CommandBuffer, RenderTextureDescriptor)

    This method is called by the renderer before executing the render pass. Override this method if you need to to configure render targets and their clear state, and to create temporary render target textures. If a render pass doesn't override this method, this render pass renders to the active Camera's render target. You should never call CommandBuffer.SetRenderTarget. Instead call ConfigureTarget and ConfigureClear.

    Declaration
    public override void Configure(CommandBuffer cmd, RenderTextureDescriptor cameraTextureDescriptor)
    Parameters
    Type Name Description
    CommandBuffer cmd

    CommandBuffer to enqueue rendering commands. This will be executed by the pipeline.

    RenderTextureDescriptor cameraTextureDescriptor

    Render texture descriptor of the camera render target.

    Overrides
    ScriptableRenderPass.Configure(CommandBuffer, RenderTextureDescriptor)
    See Also
    ConfigureTarget(RenderTargetIdentifier, RenderTargetIdentifier)
    ConfigureClear(ClearFlag, Color)
    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)