Specifies the operator to be used when pixels in a render target are blended with existing pixels in the texture.
Defined in <SDL3/SDL_gpu.h>
typedef enum SDL_GPUBlendOp
{
SDL_GPU_BLENDOP_INVALID,/**< (source * source_factor) + (destination * destination_factor) */
SDL_GPU_BLENDOP_ADD, /**< (source * source_factor) - (destination * destination_factor) */
SDL_GPU_BLENDOP_SUBTRACT, /**< (destination * destination_factor) - (source * source_factor) */
SDL_GPU_BLENDOP_REVERSE_SUBTRACT, /**< min(source, destination) */
SDL_GPU_BLENDOP_MIN, /**< max(source, destination) */
SDL_GPU_BLENDOP_MAX } SDL_GPUBlendOp;
The source color is the value written by the fragment shader. The destination color is the value currently existing in the texture.
This enum is available since SDL 3.1.3