Define the parameters of a color attachment.

interface ColorAttachmentParams {
    loadOp?: GPULoadOp;
    storeOp?: GPUStoreOp;
    clearValue?: GPUColor;
    targetFormat: GPUTextureFormat;
}

Properties

loadOp?: GPULoadOp

The load operation to perform while drawing this RenderPass.

storeOp?: GPUStoreOp

The store operation to perform while drawing this RenderPass.

clearValue?: GPUColor

The color values to clear to before drawing this RenderPass.

targetFormat: GPUTextureFormat

Optional format of the color attachment texture.