15bd8deadSopenharmony_ciName
25bd8deadSopenharmony_ci
35bd8deadSopenharmony_ci    AMD_blend_minmax_factor
45bd8deadSopenharmony_ci
55bd8deadSopenharmony_ci
65bd8deadSopenharmony_ciName Strings
75bd8deadSopenharmony_ci
85bd8deadSopenharmony_ci    GL_AMD_blend_minmax_factor
95bd8deadSopenharmony_ci
105bd8deadSopenharmony_ci
115bd8deadSopenharmony_ciContributors
125bd8deadSopenharmony_ci
135bd8deadSopenharmony_ci    Graham Sellers
145bd8deadSopenharmony_ci    Pierre Boudier
155bd8deadSopenharmony_ci
165bd8deadSopenharmony_ciContact
175bd8deadSopenharmony_ci
185bd8deadSopenharmony_ci    Graham Sellers, AMD (graham.sellers 'at' amd.com)
195bd8deadSopenharmony_ci
205bd8deadSopenharmony_ci
215bd8deadSopenharmony_ciStatus
225bd8deadSopenharmony_ci
235bd8deadSopenharmony_ci    Shipping.
245bd8deadSopenharmony_ci
255bd8deadSopenharmony_ci
265bd8deadSopenharmony_ciVersion
275bd8deadSopenharmony_ci
285bd8deadSopenharmony_ci    Last Modified Date:         April 8, 2011
295bd8deadSopenharmony_ci    Author Revision:            3
305bd8deadSopenharmony_ci
315bd8deadSopenharmony_ci
325bd8deadSopenharmony_ciNumber
335bd8deadSopenharmony_ci
345bd8deadSopenharmony_ci    404
355bd8deadSopenharmony_ci
365bd8deadSopenharmony_ciDependencies
375bd8deadSopenharmony_ci
385bd8deadSopenharmony_ci    The extension is written against the OpenGL 4.1 (Core) Specification.
395bd8deadSopenharmony_ci
405bd8deadSopenharmony_ci    OpenGL 1.0 is required.
415bd8deadSopenharmony_ci
425bd8deadSopenharmony_ciOverview
435bd8deadSopenharmony_ci
445bd8deadSopenharmony_ci    The EXT_blend_minmax extension extended the GL's blending functionality
455bd8deadSopenharmony_ci    to allow the blending equation to be specified by the application. That
465bd8deadSopenharmony_ci    extension introduced the MIN_EXT and MAX_EXT blend equations, which caused the
475bd8deadSopenharmony_ci    result of the blend equation to become the minimum or maximum of the source
485bd8deadSopenharmony_ci    color and destination color, respectively.
495bd8deadSopenharmony_ci
505bd8deadSopenharmony_ci    The MIN_EXT and MAX_EXT blend equations, however, do not include the source
515bd8deadSopenharmony_ci    or destination blend factors in the arguments to the min and max functions.
525bd8deadSopenharmony_ci    This extension provides two new blend equations that produce the minimum
535bd8deadSopenharmony_ci    or maximum of the products of the source color and source factor, and the
545bd8deadSopenharmony_ci    destination color and destination factor.
555bd8deadSopenharmony_ci
565bd8deadSopenharmony_ciNew Procedures and Functions
575bd8deadSopenharmony_ci
585bd8deadSopenharmony_ci    None.
595bd8deadSopenharmony_ci
605bd8deadSopenharmony_ciNew Tokens
615bd8deadSopenharmony_ci
625bd8deadSopenharmony_ci    Accepted by the <mode> parameter of BlendEquation and BlendEquationi, and by
635bd8deadSopenharmony_ci    the <modeRGB> and <modeAlpha> parameters of BlendEquationSeparate and
645bd8deadSopenharmony_ci    BlendEquationSeparatei:
655bd8deadSopenharmony_ci
665bd8deadSopenharmony_ci        FACTOR_MIN_AMD                              0x901C
675bd8deadSopenharmony_ci        FACTOR_MAX_AMD                              0x901D
685bd8deadSopenharmony_ci
695bd8deadSopenharmony_ciAdditions to Chapter 2 of the OpenGL 4.1 (Core) Specification (OpenGL Operation)
705bd8deadSopenharmony_ci
715bd8deadSopenharmony_ci    None.
725bd8deadSopenharmony_ci
735bd8deadSopenharmony_ciAdditions to Chapter 3 of the OpenGL 4.1 (Core) Specification (Rasterization)
745bd8deadSopenharmony_ci
755bd8deadSopenharmony_ci    None.
765bd8deadSopenharmony_ci
775bd8deadSopenharmony_ciAdditions to Chapter 4 of the OpenGL 4.1 (Core) Specification (Per-Fragment
785bd8deadSopenharmony_ciOperations and the Frame Buffer)
795bd8deadSopenharmony_ci
805bd8deadSopenharmony_ci    Modify the list of accepted tokens for <mode>, <modeRGB> and <modeAlpha>
815bd8deadSopenharmony_ci    in the description of BlendEquation{i} and BlendEquationSeparate{i}, p.262:
825bd8deadSopenharmony_ci
835bd8deadSopenharmony_ci    "... <mode>, <modeRGB>, <modeAlpha> must be one of FUNC_ADD, FUNC_SUBTRACT,
845bd8deadSopenharmony_ci    FUNC_REVERSE_SUBTRACT, MIN, MAX, FACTOR_MIN_AMD, or FACTOR_MAX_AMD. ..."
855bd8deadSopenharmony_ci
865bd8deadSopenharmony_ci    Add to Table 4.1: RGB and Alpha Blend Equations
875bd8deadSopenharmony_ci
885bd8deadSopenharmony_ci    +-----------------+---------------------------+-----------------------------+
895bd8deadSopenharmony_ci    | Mode            | RGB Components            | Alpha Component             |
905bd8deadSopenharmony_ci    +-----------------+---------------------------+-----------------------------+
915bd8deadSopenharmony_ci    | FACTOR_MIN_AMD  | R = min(Rs * Sr, Rd * Dr) | A = min(As * Sa, Ad * Da)   |
925bd8deadSopenharmony_ci    |                 | G = min(Gs * Sg, Gd * Dg) |                             |
935bd8deadSopenharmony_ci    |                 | B = min(Bs * Sb, Bd * Db) |                             |
945bd8deadSopenharmony_ci    +-----------------+---------------------------+-----------------------------+
955bd8deadSopenharmony_ci    | FACTOR_MAX_AMD  | R = max(Rs * Sr, Rd * Dr) | A = max(As * Sa, Ad * Da)   |
965bd8deadSopenharmony_ci    |                 | G = max(Gs * Sg, Gd * Dg) |                             |
975bd8deadSopenharmony_ci    |                 | B = max(Bs * Sb, Bd * Db) |                             |
985bd8deadSopenharmony_ci    +-----------------+---------------------------+-----------------------------+
995bd8deadSopenharmony_ci
1005bd8deadSopenharmony_ciAdditions to Chapter 5 of the OpenGL 4.1 (Core) Specification (Special Functions)
1015bd8deadSopenharmony_ci
1025bd8deadSopenharmony_ci    None.
1035bd8deadSopenharmony_ci
1045bd8deadSopenharmony_ciAdditions to Chapter 6 of the OpenGL 4.1 (Core) Specification (State and
1055bd8deadSopenharmony_ciState Requests)
1065bd8deadSopenharmony_ci
1075bd8deadSopenharmony_ci    None.
1085bd8deadSopenharmony_ci
1095bd8deadSopenharmony_ciAdditions to Appendix A of the OpenGL 4.1 (Core) Specification (Invariance)
1105bd8deadSopenharmony_ci
1115bd8deadSopenharmony_ci    None.
1125bd8deadSopenharmony_ci
1135bd8deadSopenharmony_ciAdditions to the AGL/GLX/WGL Specifications
1145bd8deadSopenharmony_ci
1155bd8deadSopenharmony_ci    None.
1165bd8deadSopenharmony_ci
1175bd8deadSopenharmony_ciErrors
1185bd8deadSopenharmony_ci
1195bd8deadSopenharmony_ci    None.
1205bd8deadSopenharmony_ci
1215bd8deadSopenharmony_ciNew State
1225bd8deadSopenharmony_ci
1235bd8deadSopenharmony_ci    Modify Table 6.21: Pixel Operations (cont.) p.343
1245bd8deadSopenharmony_ci
1255bd8deadSopenharmony_ci    Change entries for BLEND_EQUATION_ALPHA and BLEND_EQUATION_RGB to:
1265bd8deadSopenharmony_ci
1275bd8deadSopenharmony_ci    +----------------------+---------+---------------+---------------+-------------------------+-------+
1285bd8deadSopenharmony_ci    | Get Value            | Type    | Get Command   | Initial Value | Description             | Sec.  |
1295bd8deadSopenharmony_ci    +----------------------+---------+---------------+---------------+-------------------------+-------+
1305bd8deadSopenharmony_ci    | BLEND_EQUATION_RGB   | 8* x Z7 | GetIntegeri_v | FUNC_ADD      | RGB Blending Equation   | 4.1.7 |
1315bd8deadSopenharmony_ci    |                      |         |               |               | for Draw Buffer i       |       |
1325bd8deadSopenharmony_ci    +----------------------+---------+---------------+---------------+-------------------------+-------+
1335bd8deadSopenharmony_ci    | BLEND_EQUATION_ALPHA | 8* x Z7 | GetIntegeri_v | FUNC_ADD      | Alpha Blending Equation | 4.1.7 |
1345bd8deadSopenharmony_ci    |                      |         |               |               | for Draw Buffer i       |       |
1355bd8deadSopenharmony_ci    +----------------------+---------+---------------+---------------+-------------------------+-------+
1365bd8deadSopenharmony_ci
1375bd8deadSopenharmony_ci    * Note that the only change change is that BLEND_EQUATION_RGB and
1385bd8deadSopenharmony_ci      BLEND_EQUATION_ALPHA are now Z7 rather than Z5.
1395bd8deadSopenharmony_ci
1405bd8deadSopenharmony_ciIssues
1415bd8deadSopenharmony_ci
1425bd8deadSopenharmony_ci    None, so far.
1435bd8deadSopenharmony_ci
1445bd8deadSopenharmony_ciRevision History
1455bd8deadSopenharmony_ci
1465bd8deadSopenharmony_ci    Rev.    Date      Author    Changes
1475bd8deadSopenharmony_ci    ----  --------    --------  -----------------------------------------
1485bd8deadSopenharmony_ci
1495bd8deadSopenharmony_ci     3    04/08/2011  gsellers  Fix typo bug in Table 4.1 (caught by Brian Paul)
1505bd8deadSopenharmony_ci     2    09/15/2010  gsellers  Update to stand against OpenGL 4.1
1515bd8deadSopenharmony_ci                                Add token values.
1525bd8deadSopenharmony_ci                                Rename to AMD_blend_minmax_factor.
1535bd8deadSopenharmony_ci     1    03/16/2010  gsellers  Initial draft.
154