跳到主要内容

FramePass

Ploy3D / FramePass

Interface: FramePass

帧通道接口。

Hierarchy

Table of contents

Properties

Properties

DrawScene

Optional DrawScene: (variant: number, queue: DrawQueue) => void

Type declaration

▸ (variant, queue): void

帧通道场景绘制方法。

Parameters
NameType
variantnumber
queueDrawQueue
Returns

void


UpdateG0

Optional UpdateG0: (g0: Material, queue: DrawQueue) => void

Type declaration

▸ (g0, queue): void

帧通道附加G0更新方法。

Parameters
NameType
g0Material
queueDrawQueue
Returns

void


UseVariant

Optional UseVariant: (index: number) => boolean

Type declaration

▸ (index): boolean

使用帧通道变种。

Parameters
NameType
indexnumber
Returns

boolean


colorAttachments

colorAttachments: { clearValue: number[] ; loadOp: "clear" | "load" ; storeOp: "discard" | "store" ; view: GLTextureView }[]

渲染目标描述中的颜色附件描述(可以包含0或多个颜色附件)。

Inherited from

GLRenderPassDescriptor.colorAttachments


colorMask

colorMask: boolean[]

启用或禁用帧缓冲区颜色组件的写入。


depthStencilAttachment

Optional depthStencilAttachment: Object

渲染目标描述中的深度和模板附件描述。

Type declaration

NameTypeDescription
depthClearValuenumber深度贴图清空深度值。
depthLoadOp"clear" | "load"深度贴图初始化操作方法。
depthReadOnlyboolean深度值是否只读。
depthStoreOp"discard" | "store"深度贴图存储操作方法。
stencilClearValuenumber模板贴图清空深度值。
stencilLoadOp"clear" | "load"模板贴图初始化操作方法。
stencilReadOnlyboolean模板值是否只读。
stencilStoreOp"discard" | "store"模板贴图存储操作方法。
viewGLTextureView深度和模板贴图视图。

Inherited from

GLRenderPassDescriptor.depthStencilAttachment


flags

flags: number

帧通道标志集:1-启用,2-绘制前更新G0,4-最终帧通道,8-阴影帧。


frameUniform

frameUniform: io_ptr

帧通道所用G0资源组指针。


key

key: number

通道键,用于缓存清除操作。


label

label: string

渲染帧标签。

Inherited from

GLRenderPassDescriptor.label


queueRange

queueRange: RenderQueueRange

渲染队列范围。


renderPassID

renderPassID: number

帧通道所用渲染通道ID。


targetID

targetID: number

帧缓冲区ID。


variantCount

variantCount: number

使用帧通道变种数量,默认1。


viewport

viewport: number[]

帧通道绘制视窗范围。