Struct AlphaUpscaler.Config
Input textures and parameters for the alpha upscale pass.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct AlphaUpscaler.Config
Fields
cameraDepth
Depth at rendering resolution, for the motion vector dilation at silhouettes.
Declaration
public TextureHandle cameraDepth
Field Value
| Type | Description |
|---|---|
| TextureHandle |
enableTexArray
Indicates whether the textures are 2D texture arrays, as used by XR single-pass rendering.
Declaration
public bool enableTexArray
Field Value
| Type | Description |
|---|---|
| bool |
historyBlendFactor
Blend weight of the reprojected history. Use 0 when the history content is invalid (e.g. on a history reset): the frame falls back to the spatial upsample but still initializes the history.
Declaration
public float historyBlendFactor
Field Value
| Type | Description |
|---|---|
| float |
jitter
Sub-pixel camera jitter applied to the pre-upscale frame, in pixels at the rendering resolution.
Declaration
public Vector2 jitter
Field Value
| Type | Description |
|---|---|
| Vector2 |
motionVectors
Motion vectors at rendering resolution, in viewport UV space. Along with the depth and the two history textures, this enables the temporal accumulation; leave invalid for a spatial-only upsample.
Declaration
public TextureHandle motionVectors
Field Value
| Type | Description |
|---|---|
| TextureHandle |
nextAlphaHistory
Single-channel alpha history the pass writes this frame.
Declaration
public TextureHandle nextAlphaHistory
Field Value
| Type | Description |
|---|---|
| TextureHandle |
postUpscaleSize
Size of the upscaled output, in pixels.
Declaration
public Vector2Int postUpscaleSize
Field Value
| Type | Description |
|---|---|
| Vector2Int |
preUpscaleAlpha
Color at rendering resolution, before upscaling. Only the alpha channel is read.
Declaration
public TextureHandle preUpscaleAlpha
Field Value
| Type | Description |
|---|---|
| TextureHandle |
preUpscalePhysicalSize
Physical (allocation) size of preUpscaleAlpha when it is larger than preUpscaleSize, e.g. with viewport-based dynamic resolution inside a larger texture. Leave zero when the texture is allocated at exactly preUpscaleSize.
Declaration
public Vector2Int preUpscalePhysicalSize
Field Value
| Type | Description |
|---|---|
| Vector2Int |
preUpscaleSize
Size of the rendered viewport of preUpscaleAlpha, in pixels.
Declaration
public Vector2Int preUpscaleSize
Field Value
| Type | Description |
|---|---|
| Vector2Int |
prevAlphaHistory
Single-channel alpha history accumulated over the previous frames.
Declaration
public TextureHandle prevAlphaHistory
Field Value
| Type | Description |
|---|---|
| TextureHandle |
reactiveMask
Reactive mask at rendering resolution, or leave invalid to disable.
Declaration
public TextureHandle reactiveMask
Field Value
| Type | Description |
|---|---|
| TextureHandle |
stencilExcludeBit
Stencil value that marks the excluded pixels when reactiveMask is a stencil buffer.
Declaration
public int stencilExcludeBit
Field Value
| Type | Description |
|---|---|
| int |
upscaledColor
Upscaled color whose alpha channel is undefined. Only the RGB channels are read.
Declaration
public TextureHandle upscaledColor
Field Value
| Type | Description |
|---|---|
| TextureHandle |
viewCount
Number of views to process.
Declaration
public int viewCount
Field Value
| Type | Description |
|---|---|
| int |