docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CustomPassContext

    Context used when executing custom passes

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    public struct CustomPassContext

    Fields

    cameraColorBuffer

    Camera color buffer.

    Declaration
    public readonly RTHandle cameraColorBuffer
    Field Value
    Type Description
    RTHandle

    cameraCullingResults

    Camera culling results, not modified by the custom pass culling.

    Declaration
    public readonly CullingResults cameraCullingResults
    Field Value
    Type Description
    CullingResults

    cameraDepthBuffer

    Camera depth buffer.

    Declaration
    public readonly RTHandle cameraDepthBuffer
    Field Value
    Type Description
    RTHandle

    cameraMotionVectorsBuffer

    Camera motion vectors buffer.

    Declaration
    public readonly RTHandle cameraMotionVectorsBuffer
    Field Value
    Type Description
    RTHandle

    cameraNormalBuffer

    Camera normal buffer.

    Declaration
    public readonly RTHandle cameraNormalBuffer
    Field Value
    Type Description
    RTHandle

    cmd

    Command Buffer, used to enqueue graphic commands to the GPU.

    Declaration
    public readonly CommandBuffer cmd
    Field Value
    Type Description
    CommandBuffer

    cullingResults

    Result of the culling either of the camera or the custom pass if AggregateCullingParameters is used.

    Declaration
    public CullingResults cullingResults
    Field Value
    Type Description
    CullingResults

    customColorBuffer

    Lazy handle to the custom color buffer, not allocated if not used.

    Declaration
    public readonly Lazy<RTHandle> customColorBuffer
    Field Value
    Type Description
    Lazy<RTHandle>

    customDepthBuffer

    Lazy handle to the custom depth buffer, not allocated if not used.

    Declaration
    public readonly Lazy<RTHandle> customDepthBuffer
    Field Value
    Type Description
    Lazy<RTHandle>

    hdCamera

    HdCamera, HDRP data related to the rendering camera. Use the camera property to access the Camera class.

    Declaration
    public readonly HDCamera hdCamera
    Field Value
    Type Description
    HDCamera

    propertyBlock

    Material Property Block, unique for each custom pass instance.

    Declaration
    public readonly MaterialPropertyBlock propertyBlock
    Field Value
    Type Description
    MaterialPropertyBlock

    renderContext

    Scriptable Render Context, used for any SRP related operations.

    Declaration
    public readonly ScriptableRenderContext renderContext
    Field Value
    Type Description
    ScriptableRenderContext
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)