Version: 2017.2
Experimental: this API is experimental and might be changed or removed in the future.

ScriptableRenderContext

struct in UnityEngine.Experimental.Rendering

Cambiar al Manual

Descripción

Defines state and drawing commands used in a custom render pipelines.

When defining a custom RenderPipeline, a ScriptableRenderContext is used to set state and drawing commands to be submitted to the GPU.

A RenderPipeline.Render method implementation typically culls objects that don't need to be rendered for all the Cameras (see CullResults), and then makes a series of calls to ScriptableRenderContext.DrawRenderers intermixed with ScriptableRenderContext.ExecuteCommandBuffer calls. These calls set up global Shader properties, change render targets, dispatch compute shaders, and other rendering tasks. Finally, ScriptableRenderContext.Submit is called to execute the render loop.

See Also: RenderPipeline.

Funciones Públicas

DrawRenderersDraw subset of visible objects.
DrawShadowsDraw shadow casters for a single light.
DrawSkyboxDraw skybox.
ExecuteCommandBufferExecute a custom graphics command buffer.
SetupCameraPropertiesSetup camera specific global shader variables.
SubmitSubmit rendering loop for execution.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961