thatcosmonaut / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
1 stars 2 forks source link

Transfer map API #16

Closed thatcosmonaut closed 1 month ago

thatcosmonaut commented 1 month ago

Adds SDL_GpuMapTransferBuffer and SDL_GpuUnmapTransferBuffer. This allows the client to do things like build vertex data directly in the transfer buffer, which removes a copy step. After mapping the client must unmap before encoding any Upload commands or calling SetTransferData or GetTransferData.