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

SDL_GPUSupportsShaderFormats

GPUランタイムの対応をチェックする

ヘッダ

SDL3/SDL_gpu.h

構文

bool SDL_GPUSupportsShaderFormats(SDL_GPUShaderFormat format_flags, const char *name);

引数

SDL_GPUShaderFormatformat_flagsアプリケーションが提供できるシェーダ形式のビットフラグ
const char *name使用したいGPUドライバ. NULLならばSDLが最適なドライバを選択する

戻り値

(bool) 対応するとき真, 対応しないとき偽を戻す.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GPUSupportsShaderFormats - SDL Wiki