{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ScriptableRenderPass | Universal RP | 15.0.4
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Class ScriptableRenderPass

    ScriptableRenderPass implements a logical rendering pass that can be used to extend Universal RP renderer.

    상속
    object
    ScriptableRenderPass
    RenderObjectsPass
    DrawSkyboxPass
    AdditionalLightsShadowCasterPass
    ColorGradingLutPass
    CopyColorPass
    CopyDepthPass
    DepthNormalOnlyPass
    DepthOnlyPass
    DrawObjectsPass
    FinalBlitPass
    MainLightShadowCasterPass
    상속된 멤버
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    네임스페이스: UnityEngine.Rendering.Universal
    어셈블리: solution.dll
    구문
    public abstract class ScriptableRenderPass

    생성자

    이름 설명
    ScriptableRenderPass()

    Creates a new ScriptableRenderPass" instance.

    필드

    이름 설명
    k_CameraTarget

    RTHandle alias for BuiltinRenderTextureType.CameraTarget which is the backbuffer.

    프로퍼티

    이름 설명
    clearColor

    The color value to use when clearing.

    clearFlag

    The flag to use when clearing.

    colorAttachmentHandle

    The main color attachment handle.

    colorAttachmentHandles

    List for the g-buffer attachment handles.

    colorStoreActions

    The store actions for Color.

    depthAttachmentHandle

    The depth attachment handle.

    depthStoreAction

    The store actions for Depth.

    input

    The input requirements for the ScriptableRenderPass, which has been set using ConfigureInput

    profilingSampler

    A ProfilingSampler for the entire render pass. Used as a profiling name by ScriptableRenderer when executing the pass. Default is Unnamed_ScriptableRenderPass. Set base.profilingSampler from the sub-class constructor to set a profiling name for a custom ScriptableRenderPass.

    renderPassEvent

    The event when the render pass executes.

    메서드

    이름 설명
    Blit(CommandBuffer, RTHandle, RTHandle, Material, int)

    Add a blit command to the context for execution. This changes the active render target in the ScriptableRenderer to destination.

    Blit(CommandBuffer, ref RenderingData, Material, int)

    Add a blit command to the context for execution. This applies the material to the color target.

    Blit(CommandBuffer, ref RenderingData, RTHandle, Material, int)

    Add a blit command to the context for execution. This applies the material to the color target.

    Configure(CommandBuffer, RenderTextureDescriptor)

    This method is called by the renderer before executing the render pass. Override this method if you need to to configure render targets and their clear state, and to create temporary render target textures. If a render pass doesn't override this method, this render pass renders to the active Camera's render target. You should never call CommandBuffer.SetRenderTarget. Instead call ConfigureTarget and ConfigureClear.

    ConfigureClear(ClearFlag, Color)

    Configures clearing for the render targets for this render pass. Call this inside Configure.

    ConfigureColorStoreAction(RenderBufferStoreAction, uint)

    Configures the Store Action for a color attachment of this render pass.

    ConfigureColorStoreActions(RenderBufferStoreAction[])

    Configures the Store Actions for all the color attachments of this render pass.

    ConfigureDepthStoreAction(RenderBufferStoreAction)

    Configures the Store Action for the depth attachment of this render pass.

    ConfigureInput(ScriptableRenderPassInput)

    Configures Input Requirements for this render pass. This method should be called inside ScriptableRendererFeature.AddRenderPasses.

    ConfigureTarget(RTHandle)

    Configures render targets for this render pass. Call this instead of CommandBuffer.SetRenderTarget. This method should be called inside Configure.

    ConfigureTarget(RTHandle, RTHandle)

    Configures render targets for this render pass. Call this instead of CommandBuffer.SetRenderTarget. This method should be called inside Configure.

    ConfigureTarget(RTHandle[])

    Configures render targets for this render pass. Call this instead of CommandBuffer.SetRenderTarget. This method should be called inside Configure.

    ConfigureTarget(RTHandle[], RTHandle)

    Configures render targets for this render pass. Call this instead of CommandBuffer.SetRenderTarget. This method should be called inside Configure.

    CreateDrawingSettings(List<ShaderTagId>, ref RenderingData, SortingCriteria)

    Creates DrawingSettings based on current rendering state.

    CreateDrawingSettings(ShaderTagId, ref RenderingData, SortingCriteria)

    Creates DrawingSettings based on current the rendering state.

    Execute(ScriptableRenderContext, ref RenderingData)

    Execute the pass. This is where custom rendering occurs. Specific details are left to the implementation

    OnCameraCleanup(CommandBuffer)

    Called upon finish rendering a camera. You can use this callback to release any resources created by this render pass that need to be cleanup once camera has finished rendering. This method be called for all cameras in a camera stack.

    OnCameraSetup(CommandBuffer, ref RenderingData)

    This method is called by the renderer before rendering a camera Override this method if you need to to configure render targets and their clear state, and to create temporary render target textures. If a render pass doesn't override this method, this render pass renders to the active Camera's render target. You should never call CommandBuffer.SetRenderTarget. Instead call ConfigureTarget and ConfigureClear.

    OnFinishCameraStackRendering(CommandBuffer)

    Called upon finish rendering a camera stack. You can use this callback to release any resources created by this render pass that need to be cleanup once all cameras in the stack have finished rendering. This method will be called once after rendering the last camera in the camera stack. Cameras that don't have an explicit camera stack are also considered stacked rendering. In that case the Base camera is the first and last camera in the stack.

    RecordRenderGraph(RenderGraph, FrameResources, ref RenderingData)

    Record the render graph pass. This is where custom rendering occurs. Specific details are left to the implementation

    ResetTarget()

    Resets render targets to default. This method effectively reset changes done by ConfigureTarget.

    연산자

    이름 설명
    operator >(ScriptableRenderPass, ScriptableRenderPass)

    Compares two instances of ScriptableRenderPass by their RenderPassEvent and returns if lhs is executed after rhs.

    operator <(ScriptableRenderPass, ScriptableRenderPass)

    Compares two instances of ScriptableRenderPass by their RenderPassEvent and returns if lhs is executed before rhs.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)