Class DepthHistory
Base class for depth history. Format is the camera depth format or R32Float on platforms with limitations. If TemporalAA is enabled the depth is jittered. No mips. No depth pyramid. MSAA is not supported and is resolved for the history. XR is supported.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public abstract class DepthHistory : CameraHistoryItem
Fields
m_Names
The names to use for history items.
Declaration
protected readonly string[] m_Names
Field Value
| Type | Description |
|---|---|
| string[] |
Methods
GetCurrentTexture(int)
Get the current history texture. Current history might not be valid yet. It is valid only after executing the producing render pass.
Declaration
public RTHandle GetCurrentTexture(int eyeIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | eyeIndex | Eye index, typically XRPass.multipassId. |
Returns
| Type | Description |
|---|---|
| RTHandle | The texture. |
GetPreviousTexture(int)
Get the previous history texture.
Declaration
public RTHandle GetPreviousTexture(int eyeIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | eyeIndex | Eye index, typically XRPass.multipassId. |
Returns
| Type | Description |
|---|---|
| RTHandle | The texture. |
OnCreate(BufferedRTHandleSystem, uint)
Declaration
public override void OnCreate(BufferedRTHandleSystem owner, uint typeId)
Parameters
| Type | Name | Description |
|---|---|---|
| BufferedRTHandleSystem | owner | |
| uint | typeId |
Overrides
Reset()
Release the history texture(s).
Declaration
public override void Reset()