docs.unity.cn
    Show / Hide Table of Contents

    Class UniversalResourceData

    Class that holds settings related to texture resources.

    Inheritance
    Object
    UnityEngine.Rendering.ContextItem
    UniversalResourceDataBase
    UniversalResourceData
    Inherited Members
    UniversalResourceDataBase.CheckAndSetTextureHandle(TextureHandle, TextureHandle)
    UniversalResourceDataBase.CheckAndGetTextureHandle(TextureHandle)
    UniversalResourceDataBase.CheckAndSetTextureHandle(TextureHandle[], TextureHandle[])
    UniversalResourceDataBase.CheckAndGetTextureHandle(TextureHandle[])
    UniversalResourceDataBase.CheckAndWarnAboutAccessibility()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public class UniversalResourceData : UniversalResourceDataBase

    Properties

    activeColorID

    The active color target ID.

    Declaration
    public UniversalResourceDataBase.ActiveID activeColorID { get; }
    Property Value
    Type Description
    UniversalResourceDataBase.ActiveID

    activeColorTexture

    Returns the current active color target texture. To be referenced at RenderGraph pass recording time, not in passes render functions.

    Declaration
    public TextureHandle activeColorTexture { get; }
    Property Value
    Type Description
    TextureHandle

    TextureHandle

    activeDepthID

    The active depth target ID.

    Declaration
    public UniversalResourceDataBase.ActiveID activeDepthID { get; }
    Property Value
    Type Description
    UniversalResourceDataBase.ActiveID

    activeDepthTexture

    Returns the current active color target texture. To be referenced at RenderGraph pass recording time, not in passes render functions.

    Declaration
    public TextureHandle activeDepthTexture { get; }
    Property Value
    Type Description
    TextureHandle

    TextureHandle

    additionalShadowsTexture

    Additional shadow map.

    Declaration
    public TextureHandle additionalShadowsTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    afterPostProcessColor

    After Post Process Color. Stores the contents of the main color target after the post processing passes.

    Declaration
    public TextureHandle afterPostProcessColor { get; set; }
    Property Value
    Type Description
    TextureHandle

    backBufferColor

    The backbuffer color used to render directly to screen. All passes can write to it depending on frame setup.

    Declaration
    public TextureHandle backBufferColor { get; set; }
    Property Value
    Type Description
    TextureHandle

    backBufferDepth

    The backbuffer depth used to render directly to screen. All passes can write to it depending on frame setup.

    Declaration
    public TextureHandle backBufferDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    cameraColor

    Main offscreen camera color target. All passes can write to it depending on frame setup. Can hold multiple samples if MSAA is enabled.

    Declaration
    public TextureHandle cameraColor { get; set; }
    Property Value
    Type Description
    TextureHandle

    cameraDepth

    Main offscreen camera depth target. All passes can write to it depending on frame setup. Can hold multiple samples if MSAA is enabled.

    Declaration
    public TextureHandle cameraDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    cameraDepthTexture

    Camera depth texture. Contains the scene depth if the CopyDepth or Depth Prepass passes are executed.

    Declaration
    public TextureHandle cameraDepthTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    cameraNormalsTexture

    Camera normals texture. Contains the scene depth if the DepthNormals Prepass pass is executed.

    Declaration
    public TextureHandle cameraNormalsTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    cameraOpaqueTexture

    Camera opaque texture. Contains a copy of CameraColor if the CopyColor pass is executed.

    Declaration
    public TextureHandle cameraOpaqueTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    dBuffer

    DBuffer. Written to by the Decals pass.

    Declaration
    public TextureHandle[] dBuffer { get; set; }
    Property Value
    Type Description
    TextureHandle[]

    dBufferDepth

    DBufferDepth. Written to by the Decals pass.

    Declaration
    public TextureHandle dBufferDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    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.

    Declaration
    public TextureHandle debugScreenColor { get; set; }
    Property Value
    Type Description
    TextureHandle

    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.

    Declaration
    public TextureHandle debugScreenDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    gBuffer

    GBuffer. Written to by the GBuffer pass.

    Declaration
    public TextureHandle[] gBuffer { get; set; }
    Property Value
    Type Description
    TextureHandle[]

    internalColorLut

    Internal Color LUT. Written to by the InternalLUT pass.

    Declaration
    public TextureHandle internalColorLut { get; set; }
    Property Value
    Type Description
    TextureHandle

    mainShadowsTexture

    Main shadow map.

    Declaration
    public TextureHandle mainShadowsTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    motionVectorColor

    Motion Vector Color. Written to by the Motion Vector passes.

    Declaration
    public TextureHandle motionVectorColor { get; set; }
    Property Value
    Type Description
    TextureHandle

    motionVectorDepth

    Motion Vector Depth. Written to by the Motion Vector passes.

    Declaration
    public TextureHandle motionVectorDepth { get; set; }
    Property Value
    Type Description
    TextureHandle

    overlayUITexture

    Overlay UI Texture. The DrawScreenSpaceUI pass writes to this texture when rendering off-screen.

    Declaration
    public TextureHandle overlayUITexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    renderingLayersTexture

    Rendering Layers Texture. Can be written to by the DrawOpaques pass or DepthNormals prepass based on settings.

    Declaration
    public TextureHandle renderingLayersTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    ssaoTexture

    Screen Space Ambient Occlusion texture. Written to by the SSAO pass.

    Declaration
    public TextureHandle ssaoTexture { get; set; }
    Property Value
    Type Description
    TextureHandle

    Methods

    Reset()

    Declaration
    public override void Reset()
    Overrides
    UnityEngine.Rendering.ContextItem.Reset()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023