Enum UniversalResource
Enumerates the identifiers to use with the FrameResource manager to get/set URP frame resources.
Namespace: UnityEngine.Rendering.Universal
Syntax
public enum UniversalResource
Fields
Name | Description | Value |
---|---|---|
BackBufferColor | The backbuffer color used to render directly to screen. All passes can write to it depending on frame setup. |
0 |
BackBufferDepth | The backbuffer depth used to render directly to screen. All passes can write to it depending on frame setup. |
1 |
CameraColor | Main offscreen camera color target. All passes can write to it depending on frame setup. Can hold multiple samples if MSAA is enabled. |
2 |
CameraDepth | Main offscreen camera depth target. All passes can write to it depending on frame setup. Can hold multiple samples if MSAA is enabled. |
3 |
MainShadowsTexture | Main shadow map. |
4 |
AdditionalShadowsTexture | Additional shadow map. |
5 |
GBuffer0 | GBuffer0. Written to by the GBuffer pass. |
6 |
GBuffer1 | GBuffer1. Written to by the GBuffer pass. |
7 |
GBuffer2 | GBuffer2. Written to by the GBuffer pass. |
8 |
GBuffer3 | GBuffer3. Written to by the GBuffer pass. |
9 |
GBuffer4 | GBuffer4. Written to by the GBuffer pass. |
10 |
GBuffer5 | GBuffer5. Written to by the GBuffer pass. |
11 |
GBuffer6 | GBuffer6. Written to by the GBuffer pass. |
12 |
CameraOpaqueTexture | Camera opaque texture. Contains a copy of CameraColor if the CopyColor pass is executed. |
13 |
CameraDepthTexture | Camera depth texture. Contains the scene depth if the CopyDepth or Depth Prepass passes are executed. |
14 |
CameraNormalsTexture | Camera normals texture. Contains the scene depth if the DepthNormals Prepass pass is executed. |
15 |
MotionVectorColor | Motion Vector Color. Written to by the Motion Vector passes. |
16 |
MotionVectorDepth | Motion Vector Depth. Written to by the Motion Vector passes. |
17 |
InternalColorLut | Internal Color LUT. Written to by the InternalLUT pass. |
18 |
DebugScreenColor | Color output of post-process passes (uberPost and finalPost) when HDR debug views are enabled. It replaces the backbuffer color as standard output because the later cannot be sampled back (or may not be in HDR format). If used, DebugHandler will perform the blit from DebugScreenTexture to BackBufferColor. |
19 |
DebugScreenDepth | Depth output of post-process passes (uberPost and finalPost) when HDR debug views are enabled. It replaces the backbuffer depth as standard output because the later cannot be sampled back. |
20 |
AfterPostProcessColor | After Post Process Color. Stores the contents of the main color target after the post processing passes. |
21 |
OverlayUITexture | Overlay UI Texture. The DrawScreenSpaceUI pass writes to this texture when rendering off-screen. |
22 |
RenderingLayersTexture | Rendering Layers Texture. Can be written to by the DrawOpaques pass or DepthNormals prepass based on settings. |
23 |
DBuffer0 | DBuffer0. Written to by the Decals pass. |
24 |
DBuffer1 | DBuffer1. Written to by the Decals pass. |
25 |
DBuffer2 | DBuffer2. Written to by the Decals pass. |
26 |
DBufferDepth | DBufferDepth. Written to by the Decals pass. |
27 |
SSAOTexture | Screen Space Ambient Occlusion texture. Written to by the SSAO pass. |
28 |