ColorTargetState¶
data class ColorTargetState(
val format: GPUTextureFormat,
val blend: GPUBlendState? = null,
val writeMask: GPUColorWrite = GPUColorWrite.All
) : GPUColorTargetState
Constructors¶
ColorTargetState¶
constructor(
format: GPUTextureFormat,
blend: GPUBlendState? = null,
writeMask: GPUColorWrite = GPUColorWrite.All
)
Properties¶
blend¶
open override val blend: GPUBlendState?
The blending behavior for this color target. If left undefined, disables blending for this color target.
format¶
open override val format: GPUTextureFormat
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¶
open override val writeMask: GPUColorWrite
Bitmask controlling which channels are are written to when drawing to this color target.