GLRenderPassDescriptor
Ploy3D / GLRenderPassDescriptor
Interface: GLRenderPassDescriptor
渲染帧描述符。
Hierarchy
GLRenderPassDescriptor
Table of contents
Properties
Properties
colorAttachments
• colorAttachments: { clearValue
: number
[] ; loadOp
: "clear"
| "load"
; storeOp
: "discard"
| "store"
; view
: GLTextureView
}[]
渲染目标描述中的颜色附件描述(可以包含0或多个颜色附件)。
depthStencilAttachment
• Optional
depthStencilAttachment: Object
渲染目标描述中的深度和模板附件描述。
Type declaration
Name | Type | Description |
---|---|---|
depthClearValue | number | 深度贴图清空深度值。 |
depthLoadOp | "clear" | "load" | 深度贴图初始化操作方法。 |
depthReadOnly | boolean | 深度值是否只读。 |
depthStoreOp | "discard" | "store" | 深度贴图存储操作方法。 |
stencilClearValue | number | 模板贴图清空深度值。 |
stencilLoadOp | "clear" | "load" | 模板贴图初始化操作方法。 |
stencilReadOnly | boolean | 模板值是否只读。 |
stencilStoreOp | "discard" | "store" | 模板贴图存储操作方法。 |
view | GLTextureView | 深度和模板贴图视图。 |
label
• label: string
渲染帧标签。