Interface GPUColorTargetState
interface GPUColorTargetState {
blend?: GPUBlendState;
format: GPUTextureFormat;
writeMask?: number;
}
blend?: GPUBlendState;
format: GPUTextureFormat;
writeMask?: number;
}
Index
Properties
Properties
Optional
blend
format
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.
Optional
writeMask
writeMask ?: number
Bitmask controlling which channels are are written to when drawing to this color target.
The blending behavior for this color target. If left undefined, disables blending for this color target.