Class FBCompositionLayerAlphaBlend
This extension provides explicit control over source and destination blend factors, with separate controls for color and alpha. When specified, these blend controls supersede the behavior of COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT, as well as the layer blending operation which defined in the section of Composition Layer Blending.
When COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT is specified, the source color is unpremultiplied alpha.
Like color, destination alpha is initialized to 0 before composition begins.
In order to enable the functionality of this extension, the application must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.
These blend factors are specified by attaching a XrCompositionLayerAlphaBlendFB structure to the next chain of a layer structure derived from XrCompositionLayerBaseHeader.
Warning
Please note that using this extension is mutually exclusive with accessing an environment blend mode other than ENVIRONMENT_BLEND_MODE_OPAQUE. The latter must be the only mode returned from EnumerateEnvironmentBlendModes if this extension is enabled. Application should not enable this extension if a different value of XrEnvironmentBlendMode is required.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXrBlendFactorFB - Blend Factor Typesstatic final intXrBlendFactorFB - Blend Factor Typesstatic final intXrBlendFactorFB - Blend Factor Typesstatic final intXrBlendFactorFB - Blend Factor Typesstatic final intXrBlendFactorFB - Blend Factor Typesstatic final intXrBlendFactorFB - Blend Factor Typesstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType. -
Method Summary
-
Field Details
-
XR_FB_composition_layer_alpha_blend_SPEC_VERSION
public static final int XR_FB_composition_layer_alpha_blend_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_COMPOSITION_LAYER_ALPHA_BLEND_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB
public static final int XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FBExtendsXrStructureType.- See Also:
-
XR_BLEND_FACTOR_ZERO_FB
public static final int XR_BLEND_FACTOR_ZERO_FB- See Also:
-
XR_BLEND_FACTOR_ONE_FB
public static final int XR_BLEND_FACTOR_ONE_FB- See Also:
-
XR_BLEND_FACTOR_SRC_ALPHA_FB
public static final int XR_BLEND_FACTOR_SRC_ALPHA_FB- See Also:
-
XR_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA_FB
public static final int XR_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA_FB- See Also:
-
XR_BLEND_FACTOR_DST_ALPHA_FB
public static final int XR_BLEND_FACTOR_DST_ALPHA_FB- See Also:
-
XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB
public static final int XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB- See Also:
-