|
VDPAU
|
Complete blending operation definition. More...
#include <vdpau.h>
Complete blending operation definition.
A "blend state" operation controls the math behind certain rendering operations.
The blend math is the familiar OpenGL blend math:
![\[ dst.a = equation(blendFactorDstAlpha*dst.a,
blendFactorSrcAlpha*src.a);
\]](form_1.png)
![\[ dst.rgb = equation(blendFactorDstColor*dst.rgb,
blendFactorSrcColor*src.rgb);
\]](form_2.png)
Note that when equation is MIN or MAX, the blend factors and constants are ignored, and are treated as if they were 1.0.
| VdpColor VdpOutputSurfaceRenderBlendState::blend_constant |
| VdpOutputSurfaceRenderBlendEquation VdpOutputSurfaceRenderBlendState::blend_equation_alpha |
| VdpOutputSurfaceRenderBlendEquation VdpOutputSurfaceRenderBlendState::blend_equation_color |
| VdpOutputSurfaceRenderBlendFactor VdpOutputSurfaceRenderBlendState::blend_factor_destination_alpha |
| VdpOutputSurfaceRenderBlendFactor VdpOutputSurfaceRenderBlendState::blend_factor_destination_color |
| VdpOutputSurfaceRenderBlendFactor VdpOutputSurfaceRenderBlendState::blend_factor_source_alpha |
| VdpOutputSurfaceRenderBlendFactor VdpOutputSurfaceRenderBlendState::blend_factor_source_color |
| uint32_t VdpOutputSurfaceRenderBlendState::struct_version |
This field must be filled with VDP_OUTPUT_SURFACE_RENDER_BLEND_STATE_VERSIION