Class FBCompositionLayerAlphaBlend

java.lang.Object
org.lwjgl.openxr.FBCompositionLayerAlphaBlend

public final class FBCompositionLayerAlphaBlend extends Object
The XR_FB_composition_layer_alpha_blend extension.

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.