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_GPUColorTargetBlendState - A structure specifying the blend state of a color target.

Availability

       This struct is available since SDL 3.2.0.

Name

       SDL_GPUColorTargetBlendState - A structure specifying the blend state of a color target.

See Also

SDL_GPUColorTargetDescription(3type)

Simple Directmedia Layer                           SDL 3.2.20                SDL_GPUColorTargetBlendState(3type)

Synopsis

#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUColorTargetBlendState{SDL_GPUBlendFactorsrc_color_blendfactor;/**<ThevaluetobemultipliedbythesourceRGBvalue.*/SDL_GPUBlendFactordst_color_blendfactor;/**<ThevaluetobemultipliedbythedestinationRGBvalue.*/SDL_GPUBlendOpcolor_blend_op;/**<TheblendoperationfortheRGBcomponents.*/SDL_GPUBlendFactorsrc_alpha_blendfactor;/**<Thevaluetobemultipliedbythesourcealpha.*/SDL_GPUBlendFactordst_alpha_blendfactor;/**<Thevaluetobemultipliedbythedestinationalpha.*/SDL_GPUBlendOpalpha_blend_op;/**<Theblendoperationforthealphacomponent.*/SDL_GPUColorComponentFlagscolor_write_mask;/**<AbitmaskspecifyingwhichoftheRGBAcomponentsareenabledforwriting.Writestoallchannelsifenable_color_write_maskisfalse.*/boolenable_blend;/**<Whetherblendingisenabledforthecolortarget.*/boolenable_color_write_mask;/**<Whetherthecolorwritemaskisenabled.*/Uint8padding1;Uint8padding2;}SDL_GPUColorTargetBlendState;

See Also