aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-09-15 15:32:59 -0600
committerBrian Paul <[email protected]>2016-09-16 08:44:26 -0600
commit702ff0b9a017814851d119065cfeb7cd8afc95ce (patch)
tree85d0a8ee2f80770dd87040dcc5608683e20d84fd /src/gallium/docs/source
parent187c2781210a05f1e144f87fffdd4f513d2380c4 (diff)
gallium/docs: document alpha_to_coverage and alpha_to_one blend state
The gallium interface defines these like DX10. Note that OpenGL ignores these options if MSAA is disabled or the dest buffer doesn't support MSAA. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r--src/gallium/docs/source/cso/blend.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/docs/source/cso/blend.rst b/src/gallium/docs/source/cso/blend.rst
index dce999c8327..7316e5c71cf 100644
--- a/src/gallium/docs/source/cso/blend.rst
+++ b/src/gallium/docs/source/cso/blend.rst
@@ -88,6 +88,18 @@ independent_blend_enable
the first member of the rt array contains valid data.
rt
Contains the per-rendertarget blend state.
+alpha_to_coverage
+ If enabled, the fragment's alpha value is used to override the fragment's
+ coverage mask. The coverage mask will be all zeros if the alpha value is
+ zero. The coverage mask will be all ones if the alpha value is one.
+ Otherwise, the number of bits set in the coverage mask will be proportional
+ to the alpha value. Note that this step happens regardless of whether
+ multisample is enabled or the destination buffer is multisampled.
+alpha_to_one
+ If enabled, the fragment's alpha value will be set to one. As with
+ alpha_to_coverage, this step happens regardless of whether multisample
+ is enabled or the destination buffer is multisampled.
+
Per-rendertarget Members
------------------------