@feng3d/render-api
    Preparing search index...

    Interface RenderPassColorAttachment

    渲染通道颜色附件。

    interface RenderPassColorAttachment {
        clearValue?: Color;
        loadOp?: LoadOp;
        view?: TextureView;
    }
    Index

    Properties

    clearValue?: Color

    清除后填充值。

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

    https://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.

    loadOp?: LoadOp

    是否清除颜色附件。

    默认 "clear"

    https://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.

    颜色附件视图。

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