wisdom
Loading...
Searching...
No Matches
WisCompositeAlpha Struct Reference

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef enum WisCompositeAlpha {
WisCompositeAlphaOpaque = 0,
WisCompositeAlphaPreMultiplied = 1,
WisCompositeAlphaPostMultiplied = 2,
WisCompositeAlphaInherit = 3,

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
enum class CompositeAlpha {
Opaque = 0,
PreMultiplied = 1,
PostMultiplied = 2,
Inherit = 3,
};
}

Description


Composite alpha flags for swapchain creation.

Note
Translates to DXGI_ALPHA_MODE for DirectX 12 implementation, and VkCompositeAlphaFlagBitsKHR for Vulkan implementation.

Values:

  • WisCompositeAlphaOpaque = 0: The alpha channel, if it exists, is ignored. The image is treated as opaque.
  • WisCompositeAlphaPreMultiplied = 1: The alpha channel, if it exists, is respected and used in compositing. The premultiplied alpha format is expected.
  • WisCompositeAlphaPostMultiplied = 2: The alpha channel, if it exists, is respected and used in compositing. The postmultiplied alpha format is expected.
  • WisCompositeAlphaInherit = 3: The alpha channel, if it exists, is respected and used in compositing based on the platform's default behavior.

See Also


See also
Structs: WisSwapchainDesc