thatcosmonaut / SDL

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

Streamline TransferBuffer creation parameters #44

Closed thatcosmonaut closed 1 week ago

thatcosmonaut commented 2 weeks ago

SDL_GpuTransferUsage is a concession to D3D11, which requires this extra information for an async download workaround. It's possible to get rid of it. Additionally SDL_GpuTransferBufferMapFlags should just be an enum, because it's inefficient to use transfer buffers for both upload and download and we should encourage clients to pick one or the other.