6 This state controls blending of the final fragments into the target rendering
12 The blend factors largely follow the same pattern as their counterparts
13 in other modern and legacy drawing APIs.
15 XXX blurb about dual-source blends
20 independent_blend_enable
21 If enabled, blend state is different for each render target, and
22 for each render target set in the respective member of the rt array.
23 If disabled, blend state is the same for all render targets, and only
24 the first member of the rt array contains valid data.
26 Enables logic ops. Cannot be enabled at the same time as blending, and
27 is always the same for all render targets.
29 The logic operation to use if logic ops are enabled. One of PIPE_LOGICOP.
31 Whether dithering is enabled. Note: Dithering is implementation-dependent.
33 Contains the per-rendertarget blend state.
35 Per-rendertarget Members
36 ------------------------
39 If blending is enabled, perform a blend calculation according to blend
40 functions and source/destination factors. Otherwise, the incoming fragment
41 color gets passed unmodified (but colormask still applies).
43 The blend function to use for rgb channels. One of PIPE_BLEND.
45 The blend source factor to use for rgb channels. One of PIPE_BLENDFACTOR.
47 The blend destination factor to use for rgb channels. One of PIPE_BLENDFACTOR.
49 The blend function to use for the alpha channel. One of PIPE_BLEND.
51 The blend source factor to use for the alpha channel. One of PIPE_BLENDFACTOR.
53 The blend destination factor to use for alpha channel. One of PIPE_BLENDFACTOR.
55 Bitmask of which channels to write. Combination of PIPE_MASK bits.