Class DeferredRenderer
Deferred renderer for Universal RP. This renderer is supported on all Universal RP supported platforms. In the default mode, lights volumes are rendered using stencil masks.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Syntax
public sealed class DeferredRenderer : ScriptableRenderer, IDisposable
Constructors
DeferredRenderer(DeferredRendererData)
Declaration
public DeferredRenderer(DeferredRendererData data)
Parameters
| Type | Name | Description |
|---|---|---|
| DeferredRendererData | data |
Fields
k_DepthStencilBufferBits
Declaration
public static readonly int k_DepthStencilBufferBits
Field Value
| Type | Description |
|---|---|
| Int32 |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | disposing |
Overrides
FinishRendering(CommandBuffer)
Called upon finishing rendering the camera stack. You can release any resources created by the renderer here.
Declaration
public override void FinishRendering(CommandBuffer cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd |
Overrides
Setup(ScriptableRenderContext, ref RenderingData)
Configures the render passes that will execute for this renderer. This method is called per-camera every frame.
Declaration
public override void Setup(ScriptableRenderContext context, ref RenderingData renderingData)
Parameters
| Type | Name | Description |
|---|---|---|
| ScriptableRenderContext | context | Use this render context to issue any draw commands during execution. |
| RenderingData | renderingData | Current render state information. |
Overrides
See Also
SetupCullingParameters(ref ScriptableCullingParameters, ref CameraData)
Override this method to configure the culling parameters for the renderer. You can use this to configure if lights should be culled per-object or the maximum shadow distance for example.
Declaration
public override void SetupCullingParameters(ref ScriptableCullingParameters cullingParameters, ref CameraData cameraData)
Parameters
| Type | Name | Description |
|---|---|---|
| ScriptableCullingParameters | cullingParameters | Use this to change culling parameters used by the render pipeline. |
| CameraData | cameraData | Current render state information. |
Overrides
SetupLights(ScriptableRenderContext, ref RenderingData)
Override this method to implement the lighting setup for the renderer. You can use this to compute and upload light CBUFFER for example.
Declaration
public override void SetupLights(ScriptableRenderContext context, ref RenderingData renderingData)
Parameters
| Type | Name | Description |
|---|---|---|
| ScriptableRenderContext | context | Use this render context to issue any draw commands during execution. |
| RenderingData | renderingData | Current render state information. |