Class CreateLightweightRenderTexturesPass
Generate rendering attachments that can be used for rendering.
You can use this pass to generate valid rendering targets that the Lightweight Render Pipeline can use for rendering. For example, when you render a frame, the LWRP renders into a valid color and depth buffer.
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.LightweightPipeline
Syntax
public class CreateLightweightRenderTexturesPass : 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
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
Setup(RenderTextureDescriptor, RenderTargetHandle, RenderTargetHandle, SampleCount)
Configure the pass
Declaration
public void Setup(RenderTextureDescriptor baseDescriptor, RenderTargetHandle colorAttachmentHandle, RenderTargetHandle depthAttachmentHandle, SampleCount samples)
Parameters
Type | Name | Description |
---|---|---|
RenderTextureDescriptor | baseDescriptor | |
RenderTargetHandle | colorAttachmentHandle | |
RenderTargetHandle | depthAttachmentHandle | |
SampleCount | samples |