跳到主要内容

GLRenderPassDescriptor

Ploy3D / GLRenderPassDescriptor

Interface: GLRenderPassDescriptor

渲染帧描述符。

Hierarchy

Table of contents

Properties

Properties

colorAttachments

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

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


depthStencilAttachment

Optional depthStencilAttachment: Object

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

Type declaration

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

label

label: string

渲染帧标签。