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.
Implements
IRenderGraphRecorder
Inherited Members
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 |
Material | samplingMaterial | The |
Material | copyColorMaterial | The |
string | customPassName | An optional custom profiling name to disambiguate multiple copy passes. |
See Also
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
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