table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.2.28+ds-1
- unstable 3.2.30+ds-1
- experimental 3.3.6+git20251229~95ac0ff+ds-1
| SDL_GPUColorTargetBlendState(3type) | SDL3 DATATYPES | SDL_GPUColorTargetBlendState(3type) |
NAME¶
SDL_GPUColorTargetBlendState - A structure specifying the blend state of a color target.
SYNOPSIS¶
#include <SDL3/SDL_gpu.h>
typedef struct SDL_GPUColorTargetBlendState
{
SDL_GPUBlendFactor src_color_blendfactor; /**< The value to be multiplied by the source RGB value. */
SDL_GPUBlendFactor dst_color_blendfactor; /**< The value to be multiplied by the destination RGB value. */
SDL_GPUBlendOp color_blend_op; /**< The blend operation for the RGB components. */
SDL_GPUBlendFactor src_alpha_blendfactor; /**< The value to be multiplied by the source alpha. */
SDL_GPUBlendFactor dst_alpha_blendfactor; /**< The value to be multiplied by the destination alpha. */
SDL_GPUBlendOp alpha_blend_op; /**< The blend operation for the alpha component. */
SDL_GPUColorComponentFlags color_write_mask; /**< A bitmask specifying which of the RGBA components are enabled for writing. Writes to all channels if enable_color_write_mask is false. */
bool enable_blend; /**< Whether blending is enabled for the color target. */
bool enable_color_write_mask; /**< Whether the color write mask is enabled. */
Uint8 padding1;
Uint8 padding2;
} SDL_GPUColorTargetBlendState;
AVAILABILITY¶
This struct is available since SDL 3.2.0.
SEE ALSO¶
SDL_GPUColorTargetDescription(3type)
| SDL 3.2.30 | Simple Directmedia Layer |