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

SDL_GPUTextureSupportsFormat

テクスチャ形式が指定の種類と使用方法に対応しているかチェックする

ヘッダ

SDL3/SDL_gpu.h

構文

bool SDL_GPUTextureSupportsFormat(SDL_GPUDevice *device, SDL_GPUTextureFormat format, SDL_GPUTextureType type, SDL_GPUTextureUsageFlags usage);

引数

SDL_GPUDevice *deviceGPUコンテキスト
SDL_GPUTextureFormatformatチェックするテクスチャ形式
SDL_GPUTextureTypetypeテクスチャの種類 (2D, 3D, 立方体)
SDL_GPUTextureUsageFlagsusage使用方法のビットマスク

戻り値

(bool) テクスチャ形式が種類と使用方法に対応しているか否かを戻す.

バージョン

SDL 3.2.0以降

SDL Wikiへのリンク

SDL_GPUTextureSupportsFormat - SDL Wiki