Class ColorTargetState

Describes the color state of a render pipeline.

class ColorTargetState ;

Constructors

NameDescription
this (format, blend, writeMask)

Fields

NameTypeDescription
blend __C.WGPUBlendStateBlending used when compositing colors in this target's associated pipeline.
format TextureFormatThe texture format of the image that this target's associated pipeline will render to. Must match the the format of the corresponding color attachment in CommandEncoder.beginRenderPass.
writeMask uintMask which enables/disables writes to different color/alpha channel.

See Also

wgpu::ColorTargetState