目次 - SDL 3.0 API(機能別) - 3DレンダリングとGPUコンピューティング - SDL_GPUColorTargetBlendState

SDL_GPUColorTargetBlendState

カラーターゲットのブレンドを指定する構造体

ヘッダ

SDL3/SDL_gpu.h

フィールド

SDL_GPUBlendFactorsrc_color_blendfactor元RGB値に積算される値
SDL_GPUBlendFactordst_color_blendfactor先RGB値に積算される値
SDL_GPUBlendOpcolor_blend_opRGB成分のブレンド演算
SDL_GPUBlendFactorsrc_alpha_blendfactor元α値に積算される値
SDL_GPUBlendFactordst_alpha_blendfactor先α値に積算される値
SDL_GPUBlendOpalpha_blend_opα値のブレンド演算
SDL_GPUColorComponentFlagscolor_write_mask書き込みを有効化するRGBA要素のビットマスク. enable_color_write_maskが偽のとき全ての成分に書き込む
boolenable_blendカラーターゲットのブレンドを行うか
boolenable_color_write_maskカラー書き込みマスクは有効か
Uint8padding1
Uint8padding2

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GPUColorTargetBlendState - SDL Wiki