Optional
Readonly
clearhttps://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor
Indicates the value to clear GPURenderPassColorAttachment#view to prior to executing the
render pass. If not map/exist|provided, defaults to {r: 0, g: 0, b: 0, a: 0}
. Ignored
if GPURenderPassColorAttachment#loadOp is not GPULoadOp#"clear".
The components of GPURenderPassColorAttachment#clearValue are all double values.
They are converted [$to a texel value of texture format$] matching the render attachment.
If conversion fails, a validation error is generated.
Optional
Readonly
loadhttps://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear
Indicates the load operation to perform on GPURenderPassColorAttachment#view prior to executing the render pass. Note: It is recommended to prefer clearing; see GPULoadOp#"clear" for details.
Optional
Readonly
view注:引擎运行中该属性可能是 IGLRenderbuffer 类型,用于处理多重采样。
Generated using TypeDoc
渲染通道颜色附件。