VdpOutputSurfaceRenderBlendState Struct Reference
[VdpOutputSurface Rendering Functionality]

Complete blending operation definition. More...

#include <vdpau.h>

Data Fields

uint32_t struct_version
VdpOutputSurfaceRenderBlendFactor blend_factor_source_color
VdpOutputSurfaceRenderBlendFactor blend_factor_destination_color
VdpOutputSurfaceRenderBlendFactor blend_factor_source_alpha
VdpOutputSurfaceRenderBlendFactor blend_factor_destination_alpha
VdpOutputSurfaceRenderBlendEquation blend_equation_color
VdpOutputSurfaceRenderBlendEquation blend_equation_alpha
VdpColor blend_constant

Detailed Description

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); \]

\[ dst.rgb = equation(blendFactorDstColor*dst.rgb, blendFactorSrcColor*src.rgb); \]

Note that when equation is MIN or MAX, the blend factors and constants are ignored, and are treated as if they were 1.0.


Field Documentation

This field must be filled with VDP_OUTPUT_SURFACE_RENDER_BLEND_STATE_VERSIION


The documentation for this struct was generated from the following file:

Generated on 29 Jan 2013 for VDPAU by  doxygen 1.6.1