SDL 3.0
SDL_GPUColorTargetBlendState Struct Reference

#include <SDL_gpu.h>

Data Fields

SDL_GPUBlendFactor src_color_blendfactor
 
SDL_GPUBlendFactor dst_color_blendfactor
 
SDL_GPUBlendOp color_blend_op
 
SDL_GPUBlendFactor src_alpha_blendfactor
 
SDL_GPUBlendFactor dst_alpha_blendfactor
 
SDL_GPUBlendOp alpha_blend_op
 
SDL_GPUColorComponentFlags color_write_mask
 
SDL_bool enable_blend
 
SDL_bool enable_color_write_mask
 
Uint8 padding2
 
Uint8 padding3
 

Detailed Description

A structure specifying the blend state of a color target.

Since
This struct is available since SDL 3.0.0
See also
SDL_GPUColorTargetDescription

Definition at line 1249 of file SDL_gpu.h.

Field Documentation

◆ alpha_blend_op

SDL_GPUBlendOp SDL_GPUColorTargetBlendState::alpha_blend_op

The blend operation for the alpha component.

Definition at line 1256 of file SDL_gpu.h.

◆ color_blend_op

SDL_GPUBlendOp SDL_GPUColorTargetBlendState::color_blend_op

The blend operation for the RGB components.

Definition at line 1253 of file SDL_gpu.h.

◆ color_write_mask

SDL_GPUColorComponentFlags SDL_GPUColorTargetBlendState::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 SDL_FALSE.

Definition at line 1257 of file SDL_gpu.h.

◆ dst_alpha_blendfactor

SDL_GPUBlendFactor SDL_GPUColorTargetBlendState::dst_alpha_blendfactor

The value to be multiplied by the destination alpha.

Definition at line 1255 of file SDL_gpu.h.

◆ dst_color_blendfactor

SDL_GPUBlendFactor SDL_GPUColorTargetBlendState::dst_color_blendfactor

The value to be multiplied by the destination RGB value.

Definition at line 1252 of file SDL_gpu.h.

◆ enable_blend

SDL_bool SDL_GPUColorTargetBlendState::enable_blend

Whether blending is enabled for the color target.

Definition at line 1258 of file SDL_gpu.h.

◆ enable_color_write_mask

SDL_bool SDL_GPUColorTargetBlendState::enable_color_write_mask

Whether the color write mask is enabled.

Definition at line 1259 of file SDL_gpu.h.

◆ padding2

Uint8 SDL_GPUColorTargetBlendState::padding2

Definition at line 1260 of file SDL_gpu.h.

◆ padding3

Uint8 SDL_GPUColorTargetBlendState::padding3

Definition at line 1261 of file SDL_gpu.h.

◆ src_alpha_blendfactor

SDL_GPUBlendFactor SDL_GPUColorTargetBlendState::src_alpha_blendfactor

The value to be multiplied by the source alpha.

Definition at line 1254 of file SDL_gpu.h.

◆ src_color_blendfactor

SDL_GPUBlendFactor SDL_GPUColorTargetBlendState::src_color_blendfactor

The value to be multiplied by the source RGB value.

Definition at line 1251 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: