docs.unity3d.com
    显示 / 隐藏目录

    Class HDRenderPipeline

    High Definition Render Pipeline class.

    Inheritance
    Object
    RenderPipeline
    HDRenderPipeline
    Inherited Members
    RenderPipeline.BeginFrameRendering(ScriptableRenderContext, Camera[])
    RenderPipeline.BeginCameraRendering(ScriptableRenderContext, Camera)
    RenderPipeline.EndFrameRendering(ScriptableRenderContext, Camera[])
    RenderPipeline.EndCameraRendering(ScriptableRenderContext, Camera)
    RenderPipeline.disposed
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public class HDRenderPipeline : RenderPipeline, IDataProvider

    Constructors

    HDRenderPipeline(HDRenderPipelineAsset, HDRenderPipelineAsset)

    HDRenderPipeline constructor.

    Declaration
    public HDRenderPipeline(HDRenderPipelineAsset asset, HDRenderPipelineAsset defaultAsset)
    Parameters
    Type Name Description
    HDRenderPipelineAsset asset

    Source HDRenderPipelineAsset.

    HDRenderPipelineAsset defaultAsset

    Defauklt HDRenderPipelineAsset.

    Fields

    k_ShaderTagName

    Shader Tag for the High Definition Render Pipeline.

    Declaration
    public const string k_ShaderTagName = "HDRenderPipeline"
    Field Value
    Type Description
    String

    Properties

    debugDisplaySettings

    Debug display settings.

    Declaration
    public DebugDisplaySettings debugDisplaySettings { get; }
    Property Value
    Type Description
    DebugDisplaySettings

    rayTracingSupported

    Flag that defines if ray tracing is supported by the current HDRP asset and platform

    Declaration
    public bool rayTracingSupported { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Dispose(Boolean)

    Disposable pattern implementation.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    Is disposing.

    Overrides
    UnityEngine.Rendering.RenderPipeline.Dispose(System.Boolean)

    ExportSkyToTexture(Camera)

    Export the provided camera's sky to a flattened cubemap.

    Declaration
    public Texture2D ExportSkyToTexture(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    Requested camera.

    Returns
    Type Description
    Texture2D

    Result texture.

    GetRaysPerFrame(RayCountValues)

    This functions allows the user to have an approximation of the number of rays that were traced for a given frame.

    Declaration
    public uint GetRaysPerFrame(RayCountValues rayValues)
    Parameters
    Type Name Description
    RayCountValues rayValues

    Specifes which ray count value should be returned.

    Returns
    Type Description
    UInt32

    The approximated ray count for a frame

    Render(ScriptableRenderContext, Camera[])

    RenderPipeline Render implementation.

    Declaration
    protected override void Render(ScriptableRenderContext renderContext, Camera[] cameras)
    Parameters
    Type Name Description
    ScriptableRenderContext renderContext

    Current ScriptableRenderContext.

    Camera[] cameras

    List of cameras to render.

    Overrides
    RenderPipeline.Render(ScriptableRenderContext, Camera[])

    RequestSkyEnvironmentUpdate()

    Request an update of the environment lighting.

    Declaration
    public void RequestSkyEnvironmentUpdate()

    Explicit Interface Implementations

    IDataProvider.Cleanup(StageRuntimeInterface)

    Declaration
    void IDataProvider.Cleanup(StageRuntimeInterface SRI)
    Parameters
    Type Name Description
    StageRuntimeInterface SRI
    Implements
    IDataProvider.Cleanup(StageRuntimeInterface)

    IDataProvider.FirstInitScene(StageRuntimeInterface)

    This hook allows HDRP to init the scene when creating the view

    Declaration
    void IDataProvider.FirstInitScene(StageRuntimeInterface SRI)
    Parameters
    Type Name Description
    StageRuntimeInterface SRI

    The StageRuntimeInterface allowing to communicate with the LookDev

    Implements
    IDataProvider.FirstInitScene(StageRuntimeInterface)

    IDataProvider.OnBeginRendering(StageRuntimeInterface)

    This hook allows HDRP to apply some changes before the LookDev's Camera render. Should mainly be used for view isolation.

    Declaration
    void IDataProvider.OnBeginRendering(StageRuntimeInterface SRI)
    Parameters
    Type Name Description
    StageRuntimeInterface SRI

    The StageRuntimeInterface allowing to communicate with the LookDev

    Implements
    IDataProvider.OnBeginRendering(StageRuntimeInterface)

    IDataProvider.OnEndRendering(StageRuntimeInterface)

    This hook allows HDRP to apply some changes after the LookDev's Camera render. Should mainly be used for view isolation.

    Declaration
    void IDataProvider.OnEndRendering(StageRuntimeInterface SRI)
    Parameters
    Type Name Description
    StageRuntimeInterface SRI

    The StageRuntimeInterface allowing to communicate with the LookDev

    Implements
    IDataProvider.OnEndRendering(StageRuntimeInterface)

    IDataProvider.supportedDebugModes

    This hook allows HDRP to give to LookDev what debug mode it can support.

    Declaration
    IEnumerable<string> IDataProvider.supportedDebugModes { get; }
    Returns
    Type Description
    IEnumerable<String>
    Implements
    IDataProvider.supportedDebugModes

    IDataProvider.UpdateDebugMode(Int32)

    This hook allows HDRP to update the debug mode used while requested in the LookDev.

    Declaration
    void IDataProvider.UpdateDebugMode(int debugIndex)
    Parameters
    Type Name Description
    Int32 debugIndex

    The index corresponding to the debug view, -1 = none, other have same index than iven by IDataProvider.supportedDebugModes

    Implements
    IDataProvider.UpdateDebugMode(Int32)
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)