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

SDL_DownloadFromGPUTexture

テクスチャのデータを転送バッファにGPUタイムラインでコピーする

ヘッダ

SDL3/SDL_gpu.h

構文

void SDL_DownloadFromGPUTexture(SDL_GPUCopyPass *copy_pass, const SDL_GPUTextureRegion *source, const SDL_GPUTextureTransferInfo *destination);

引数

SDL_GPUCopyPass *copy_passコピーパスハンドル
const SDL_GPUTextureRegion *sourceコピー元のテクスチャ領域
const SDL_GPUTextureTransferInfo *destinationコピー先の転送バッファと画像レイアウト

詳細

コマンドバッファフェンスから信号を得るまではデータがコピーされた保証はない.

バージョン

SDL 3.2.0以降

SDL Wikiへのリンク

SDL_DownloadFromGPUTexture - SDL Wiki