Define the parameters of a color attachment

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

Properties

loadOp?: GPULoadOp

The GPULoadOp | load operation to perform while drawing this RenderPass

storeOp?: GPUStoreOp

The GPUStoreOp | store operation to perform while drawing this RenderPass

clearValue?: GPUColor

The GPUColor | color values to clear to before drawing this RenderPass

targetFormat: GPUTextureFormat

Optional format of the color attachment texture