From 727a5fae59917f058c30511b602635eb4fb25288 Mon Sep 17 00:00:00 2001
From: SDL Wiki Bot <[EMAIL REDACTED]>
Date: Tue, 22 Apr 2025 21:34:48 +0000
Subject: [PATCH] Sync SDL3 wiki -> header
[ci skip]
---
include/SDL3/SDL_gpu.h | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/include/SDL3/SDL_gpu.h b/include/SDL3/SDL_gpu.h
index e1b72ea5181ed..d4b07dc6b10b9 100644
--- a/include/SDL3/SDL_gpu.h
+++ b/include/SDL3/SDL_gpu.h
@@ -253,16 +253,15 @@
* The GPU API uses a left-handed coordinate system, following the convention
* of D3D12 and Metal. Specifically:
*
- * - **Normalized Device Coordinates:** The
- * lower-left corner has an x,y coordinate of `(-1.0, -1.0)`. The upper-right
- * corner is `(1.0, 1.0)`. Z values range from `[0.0, 1.0]` where 0 is the
- * near plane.
- * - **Viewport Coordinates:** The top-left corner has an x,y
- * coordinate of `(0, 0)` and extends to the bottom-right corner at
- * `(viewportWidth, viewportHeight)`. +Y is down.
- * - **Texture Coordinates:**
- * The top-left corner has an x,y coordinate of `(0, 0)` and extends to the
- * bottom-right corner at `(1.0, 1.0)`. +Y is down.
+ * - **Normalized Device Coordinates:** The lower-left corner has an x,y
+ * coordinate of `(-1.0, -1.0)`. The upper-right corner is `(1.0, 1.0)`. Z
+ * values range from `[0.0, 1.0]` where 0 is the near plane.
+ * - **Viewport Coordinates:** The top-left corner has an x,y coordinate of
+ * `(0, 0)` and extends to the bottom-right corner at `(viewportWidth,
+ * viewportHeight)`. +Y is down.
+ * - **Texture Coordinates:** The top-left corner has an x,y coordinate of
+ * `(0, 0)` and extends to the bottom-right corner at `(1.0, 1.0)`. +Y is
+ * down.
*
* If the backend driver differs from this convention (e.g. Vulkan, which has
* an NDC that assumes +Y is down), SDL will automatically convert the