SDL_GPUCopyPass(3type)
π SDL_GPUCopyPass π
okay so bestie, welcome to the SDL3 DATATYPES corner of the manual, and today's main character is SDL_GPUCopyPass. she's a handle. she's opaque. she's lowkey mysterious and we respect that. π
β¨ NAME β¨
SDL_GPUCopyPass β an opaque handle representing a copy pass. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gpu.h>
typedef struct SDL_GPUCopyPass SDL_GPUCopyPass;
like, look at her. no fields. no internals. you get a pointer-ish token and you say thank you. opaque means you literally cannot peek inside, and ngl that's on purpose. π
π¦ DESCRIPTION π¦
so here's the tea, and it's important tea: this handle is transient. it is not yours to keep. it's giving "borrowed hoodie" energy β you wear it for the duration of the pass and then you give it back.
β οΈ fr fr: do not hold onto this handle, and do not reference it after SDL_EndGPUCopyPass is called. once that call happens, the handle is done. periodt. π
so like, no stashing it in a struct, no saving it for later, no "but what if I justβ" nope. SDL_BeginGPUCopyPass hands it to you, you do your copy things, SDL_EndGPUCopyPass takes it away, and you move on with your life. that's the whole relationship. π
β AVAILABILITY β
this struct has been around since SDL 3.2.0. so if you're on anything older, she's simply not there, bestie. π
π SEE ALSO π
SDL_BeginGPUCopyPass(3)β the one who introduces you π«ΆSDL_EndGPUCopyPass(3)β the one who says okay bye π
and that's the page!! written for Simple Directmedia Layer, living in SDL 3.4.18, filed under SDL_GPUCopyPass(3type). go forth and copy responsibly, icon. πβ¨ππ¦
π¦ 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