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

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef enum WisBlendOp {
WisBlendOpAdd = 1,
WisBlendOpSubtract = 2,
WisBlendOpRevSubtract = 3,
WisBlendOpMin = 4,
WisBlendOpMax = 5,

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
enum class BlendOp {
Add = 1,
Subtract = 2,
RevSubtract = 3,
Min = 4,
Max = 5,
};
}

Description


Blend operation for color blending operations.

Note
Translates to D3D12_BLEND_OP for DirectX 12 implementation, and VkBlendOp for Vulkan implementation.

Values:

  • WisBlendOpAdd = 1: Add the source and destination colors.
  • WisBlendOpSubtract = 2: Subtract the source color from the destination color.
  • WisBlendOpRevSubtract = 3: Subtract the destination color from the source color.
  • WisBlendOpMin = 4: Use the minimum of the source and destination colors.
  • WisBlendOpMax = 5: Use the maximum of the source and destination colors.

See Also


See also
Structs: WisBlendAttachmentDesc