RenderPass

类位于 InfEngine.renderstack

描述

自定义渲染 Pass 的基类。

description

构造函数

签名 描述
RenderPass.__init__(enabled: bool = ...) → None

constructors

属性

名称 类型 描述
name str The unique name of this render pass. (只读)
injection_point str The injection point where this pass is inserted. (只读)
default_order int Default execution order within the injection point. (只读)
requires ClassVar[Set[str]] Resource names this pass reads from. (只读)
modifies ClassVar[Set[str]] Resource names this pass writes to. (只读)
creates ClassVar[Set[str]] Resource names this pass creates. (只读)
enabled bool Whether this pass is currently enabled. (只读)

properties

公共方法

方法 描述
inject(graph: RenderGraph, bus: ResourceBus) → None Inject render commands into the graph using the resource bus.
validate(available_resources: Set[str]) → List[str] Validate that all required resources are available.

public_methods

运算符

方法 返回值
__repr__() → str str

operators

示例

# TODO: Add example for RenderPass

example

另请参阅

see_also