docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CopyColorPass

    Copy the given color buffer to the given destination color buffer.

    You can use this pass to copy a color buffer to the destination, so you can use it later in rendering. For example, you can copy the opaque texture to use it for distortion effects.

    Inheritance
    object
    ScriptableRenderPass
    CopyColorPass
    Implements
    IRenderGraphRecorder
    Inherited Members
    ScriptableRenderPass.renderPassEvent
    ScriptableRenderPass.colorAttachmentHandles
    ScriptableRenderPass.colorAttachmentHandle
    ScriptableRenderPass.depthAttachmentHandle
    ScriptableRenderPass.colorStoreActions
    ScriptableRenderPass.depthStoreAction
    ScriptableRenderPass.input
    ScriptableRenderPass.clearFlag
    ScriptableRenderPass.clearColor
    ScriptableRenderPass.requiresIntermediateTexture
    ScriptableRenderPass.profilingSampler
    ScriptableRenderPass.ConfigureInput(ScriptableRenderPassInput)
    ScriptableRenderPass.OnCameraCleanup(CommandBuffer)
    ScriptableRenderPass.RecordRenderGraph(RenderGraph, ContextContainer)
    ScriptableRenderPass.CreateDrawingSettings(ShaderTagId, ref RenderingData, SortingCriteria)
    ScriptableRenderPass.CreateDrawingSettings(ShaderTagId, UniversalRenderingData, UniversalCameraData, UniversalLightData, SortingCriteria)
    ScriptableRenderPass.CreateDrawingSettings(List<ShaderTagId>, ref RenderingData, SortingCriteria)
    ScriptableRenderPass.CreateDrawingSettings(List<ShaderTagId>, UniversalRenderingData, UniversalCameraData, UniversalLightData, SortingCriteria)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal.Internal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public class CopyColorPass : ScriptableRenderPass, IRenderGraphRecorder

    Constructors

    CopyColorPass(RenderPassEvent, Material, Material, string)

    Creates a new CopyColorPass instance.

    Declaration
    public CopyColorPass(RenderPassEvent evt, Material samplingMaterial, Material copyColorMaterial = null, string customPassName = null)
    Parameters
    Type Name Description
    RenderPassEvent evt

    The RenderPassEvent to use.

    Material samplingMaterial

    The Material to use for downsampling quarter-resolution image with box filtering.

    Material copyColorMaterial

    The Material to use for other downsampling options.

    string customPassName

    An optional custom profiling name to disambiguate multiple copy passes.

    See Also
    RenderPassEvent
    Downsampling

    Methods

    ConfigureDescriptor(Downsampling, ref RenderTextureDescriptor, out FilterMode)

    Get a descriptor and filter mode for the required texture for this pass

    Declaration
    public static void ConfigureDescriptor(Downsampling downsamplingMethod, ref RenderTextureDescriptor descriptor, out FilterMode filterMode)
    Parameters
    Type Name Description
    Downsampling downsamplingMethod
    RenderTextureDescriptor descriptor
    FilterMode filterMode
    See Also
    Downsampling
    RenderTextureDescriptor
    FilterMode

    Setup(RTHandle, RTHandle, Downsampling)

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

    Declaration
    public void Setup(RTHandle source, RTHandle destination, Downsampling downsampling)
    Parameters
    Type Name Description
    RTHandle source

    Source render target.

    RTHandle destination

    Destination render target.

    Downsampling downsampling

    The downsampling method to use.

    Implements

    UnityEngine.Rendering.RenderGraphModule.IRenderGraphRecorder
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)