Struct CustomPassContext | High Definition RP | 9.0.0-preview.71
docs.unity3d.com
    Show / Hide Table of Contents

    Struct CustomPassContext

    Context used when executing custom passes

    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public struct CustomPassContext

    Fields

    cameraColorBuffer

    Camera color buffer.

    Declaration
    public readonly RTHandle cameraColorBuffer
    Field Value
    Type Description
    RTHandle

    cameraDepthBuffer

    Camera depth buffer.

    Declaration
    public readonly RTHandle cameraDepthBuffer
    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 readonly 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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023