Interface GPUColorTargetState

    interface GPUColorTargetState {
        blend?: GPUBlendState;
        format: GPUTextureFormat;
        writeMask?: number;
    }

    Properties

    The blending behavior for this color target. If left undefined, disables blending for this color target.

    The GPUTextureFormat of this color target. The pipeline will only be compatible with GPURenderPassEncoders which use a GPUTextureView of this format in the corresponding color attachment.

    writeMask?: number

    Bitmask controlling which channels are are written to when drawing to this color target.