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

SDL_GPUBlendOp

レンダーターゲットのピクセルとテクスチャの既存のピクセルをブレンドするとき使用する演算の列挙体

ヘッダ

SDL3/SDL_gpu.h

SDL_GPU_BLENDOP_INVALID
SDL_GPU_BLENDOP_ADD(source * source_factor) + (destination * destination_factor)
SDL_GPU_BLENDOP_SUBTRACT(source * source_factor) - (destination * destination_factor)
SDL_GPU_BLENDOP_REVERSE_SUBTRACT(destination * destination_factor) - (source * source_factor)
SDL_GPU_BLENDOP_MINmin(source, destination)
SDL_GPU_BLENDOP_MAXmax(source, destination)

詳細

sourceはフラグメントシェーダによって書き込まれた値であり, destinationはテクスチャの現在の値である.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GPUBlendOp - SDL Wiki