From 7df0ffd436259cef9216657d05dfee1e7c3176e4 Mon Sep 17 00:00:00 2001 From: SDL Wiki Bot Date: Tue, 4 Mar 2025 13:27:13 +0000 Subject: [PATCH] Sync SDL3 wiki -> header [ci skip] --- include/SDL3/SDL_gpu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/SDL3/SDL_gpu.h b/include/SDL3/SDL_gpu.h index 818ca7e7ad..54919019eb 100644 --- a/include/SDL3/SDL_gpu.h +++ b/include/SDL3/SDL_gpu.h @@ -1310,6 +1310,12 @@ typedef struct SDL_GPUViewport * A structure specifying parameters related to transferring data to or from a * texture. * + * If either of `pixels_per_row` or `rows_per_layer` is zero, then width and + * height of passed SDL_GPUTextureRegion to SDL_UploadToGPUTexture + * + * / SDL_DownloadFromGPUTexture are used as default values respectively and + * data is considered to be tightly packed. + * * \since This struct is available since SDL 3.2.0. * * \sa SDL_UploadToGPUTexture