暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

scriptable-render-pass-reference.md 1.1KB


uid: urp-docfx-scriptable-render-pass-reference

Scriptable Render Pass Compatibility Mode API reference

You can use the following methods within a Scriptable Render Pass to handle its core functions.

[!include[](../../snippets/note-compatibility-mode.md)]

Method Description
Execute Use this method to implement the rendering logic for the Scriptable Renderer Feature.

Note: You must not call ScriptableRenderContext.Submit on a command buffer provided by URP. The render pipeline handles this at specific points in the pipeline.
OnCameraCleanup Use this method to clean up any resources that were allocated during the render pass.
OnCameraSetup Use this method to configure render targets and their clear state. You can also use it to create temporary render target textures.

Note: When this method is empty, the render pass renders to the active camera render target.

Additional resources