API

Enumeration ChannelMask

Bitmask controlling which channels are written to the output texture by a processing operation. Channels excluded from the mask receive a sensible default: 0.0 for RGB channels, 1.0 for alpha. Use ChannelMask.RGBA (or omit the parameter) to pass all channels through unchanged.

FlagChannels writtenExcluded channels
RredG=0, B=0, A=1
GgreenR=0, B=0, A=1
BblueR=0, G=0, A=1
AalphaR=0, G=0, B=0
RGBred, green, blueA=1
RGBAall four(none)
Index
A: 8

Pass only the alpha channel; R=0, G=0, B=0.

B: 4

Pass only the blue channel; R=0, G=0, A=1.

G: 2

Pass only the green channel; R=0, B=0, A=1.

R: 1

Pass only the red channel; G=0, B=0, A=1.

RGB: 7

Pass red, green, and blue; alpha is forced to 1.0.

RGBA: 15

Pass all four channels unchanged (default — no masking).