logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GPUBlendFactor - Specifies a blending factor to be used when pixels in a render target are blended

Availability

       This enum is available since SDL 3.2.0.

Description

       The source color is the value written by  the  fragment  shader.  The  destination  color  is  the  value
       currently existing in the texture.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_GPUBlendFactor  -  Specifies  a blending factor to be used when pixels in a render target are blended
       with existing pixels in the texture.

See Also

(3), SDL_CreateGPUGraphicsPipeline(3)

Simple Directmedia Layer                           SDL 3.2.10                          SDL_GPUBlendFactor(3type)

Synopsis

#include"SDL3/SDL.h"typedefenumSDL_GPUBlendFactor{SDL_GPU_BLENDFACTOR_INVALID,SDL_GPU_BLENDFACTOR_ZERO,/**<0*/SDL_GPU_BLENDFACTOR_ONE,/**<1*/SDL_GPU_BLENDFACTOR_SRC_COLOR,/**<sourcecolor*/SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_COLOR,/**<1-sourcecolor*/SDL_GPU_BLENDFACTOR_DST_COLOR,/**<destinationcolor*/SDL_GPU_BLENDFACTOR_ONE_MINUS_DST_COLOR,/**<1-destinationcolor*/SDL_GPU_BLENDFACTOR_SRC_ALPHA,/**<sourcealpha*/SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,/**<1-sourcealpha*/SDL_GPU_BLENDFACTOR_DST_ALPHA,/**<destinationalpha*/SDL_GPU_BLENDFACTOR_ONE_MINUS_DST_ALPHA,/**<1-destinationalpha*/SDL_GPU_BLENDFACTOR_CONSTANT_COLOR,/**<blendconstant*/SDL_GPU_BLENDFACTOR_ONE_MINUS_CONSTANT_COLOR,/**<1-blendconstant*/SDL_GPU_BLENDFACTOR_SRC_ALPHA_SATURATE/**<min(sourcealpha,1-destinationalpha)*/}SDL_GPUBlendFactor;

See Also