SDL_BlitGPUTexture(3)
π SDL_BlitGPUTexture π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, where we're talking about SDL_BlitGPUTexture β she copies a region from one texture to another region of a texture, and she does it on the GPU, no cap. β¨
πΈ NAME πΈ
SDL_BlitGPUTexture β blits from a source texture region to a destination texture region. it's giving copy-paste but make it graphics card. π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_gpu.h>
void SDL_BlitGPUTexture(
SDL_GPUCommandBuffer *command_buffer,
const SDL_GPUBlitInfo *info);
π DESCRIPTION π
so here's the tea, and it's a big one: this function must not be called inside of any pass. like, at all. ever. not in a render pass, not in a compute pass, not in a copy pass, none of them. calling it inside a pass is not the vibe and SDL will simply not be having it. π«
π FUNCTION PARAMETERS π
command_bufferβ a command buffer. that's the thing you're recording all your GPU stuff into, mwah. πinfoβ the blit info struct containing the blit parameters. all the details about what's going where live in here, she's the main character of this call. π
π AVAILABILITY π
this one has been serving looks since SDL 3.2.0. if you're on anything older, sorry babe, she's not there yet. π
fr fr, the one thing to remember: not inside any pass. everything else is just filling out the struct and letting her cook. π₯
and that's the whole page, bestie!! this lil' slice of documentation came to you from Simple Directmedia Layer, SDL 3.4.18, and it's literally called SDL_BlitGPUTexture(3). go blit something iconic. π«Άβ¨π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms