Interface RenderPassColorAttachment

渲染通道颜色附件。

Hierarchy

  • RenderPassColorAttachment

Properties

clearValue?: Color

清除后填充值。

默认为 [0,0,0,0]。

WebGL

See

https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor

WebGPU:

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.

loadOp?: LoadOp

是否清除颜色附件。

默认 "clear"

WebGL

See

https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear

WebGPU

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.

颜色附件视图。

WebGL

如果没有设置,默认为画布;否则使用 纹理视图 。

Generated using TypeDoc