Maps a transfer buffer into application address space.
Defined in <SDL3/SDL_gpu.h>
void* SDL_MapGPUTransferBuffer(
SDL_GPUDevice *device,
SDL_GPUTransferBuffer *transfer_buffer,bool cycle);
SDL_GPUDevice * | device | a GPU context. |
SDL_GPUTransferBuffer * | transfer_buffer | a transfer buffer. |
bool | cycle | if true, cycles the transfer buffer if it is already bound. |
(void *) Returns the address of the mapped transfer buffer memory, or NULL on failure; call SDL_GetError() for more information.
You must unmap the transfer buffer before encoding upload commands.
This function is available since SDL 3.1.3.