Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenderPipeline

Provides a way to implement rendering logic for a Scriptable Render Pipeline.
Read time 1 minuteLast updated 4 days ago

Definition

public abstract class RenderPipeline

Remarks

Inherit from this class to override the RenderPipeline.Render method as part of implementing a Scriptable Render Pipeline (SRP):
using UnityEngine;using UnityEngine.Rendering;using System.Collections.Generic;public class CustomRenderPipeline : RenderPipeline{ protected override void Render(ScriptableRenderContext context, List<Camera> cameras) { // Implement this method to customize your SRP. // For a more complete example, refer to RenderPipeline.Render. }}
For more detailed information, refer to Creating a custom render pipeline and Unity Manual: Scriptable Render Pipeline.

Properties

Property

Description

disposedReturns true when the RenderPipeline is invalid or destroyed.

Methods

Method

Description

DisposeDisposes the RenderPipeline, which destroys all internal states.
IsPreviewSupportedAllow to specify if a camera can be previewed or not.
IsRenderRequestSupportedImplement this method in a custom Scriptable Render Pipeline (SRP) to specify if a particular combination of camera and render request is supported.
ProcessRenderRequestsImplement this method in a custom Scriptable Render Pipeline (SRP) to execute render requests submitted using RenderPipeline.SubmitRenderRequest.
RenderEntry point method that defines custom rendering for this RenderPipeline.

Static Methods

Method

Description

BeginCameraRenderingCalls the RenderPipelineManager.beginCameraRendering delegate.
BeginContextRenderingCalls the RenderPipelineManager.beginContextRendering and RenderPipelineManager.beginFrameRendering delegates.
EndCameraRenderingCalls the RenderPipelineManager.endCameraRendering delegate.
EndContextRenderingCalls the RenderPipelineManager.endContextRendering and RenderPipelineManager.endFrameRendering delegates.
SubmitRenderRequestSubmits a render request to a camera using the render pipeline, outside of the Unity render loop.
SupportsRenderRequestChecks if the render pipeline supports the
RequestData
type with the camera.

Classes

Class

Description

RenderPipeline.StandardRequestStandard request type for RenderPipeline.SubmitRenderRequest.