aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir <emircengiz21@gmail.com>2024-07-24 10:33:34 +0300
committerEmir <emircengiz21@gmail.com>2024-07-24 10:33:34 +0300
commitc98bb7da39b2acdfe1dc5a3426102ed27944b358 (patch)
tree074293e5efae974b0b345344713815c5c4138e35
parentba81a81ca8ada09a896a1a8fa3818d8b0c09be62 (diff)
Update README.md
-rw-r--r--vendor/wgpu/README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/vendor/wgpu/README.md b/vendor/wgpu/README.md
index 59b31567f..8b2c95b5e 100644
--- a/vendor/wgpu/README.md
+++ b/vendor/wgpu/README.md
@@ -37,13 +37,20 @@ The bindings work on both `-target:js_wasm32` and `-target:js_wasm64p32`.
## GLFW Glue
There is an inner package `glfwglue` that can be used to glue together WGPU and GLFW.
-It exports one procedure `GetSurface(wgpu.Instance, glfw.WindowHandle) -> glfw.Surface`.
+It exports one procedure `GetSurface(wgpu.Instance, glfw.WindowHandle) -> wgpu.Surface`.
The procedure will call the needed target specific procedures and return a surface configured
for the given window.
Do note that wgpu does not require GLFW, you can use native windows or another windowing library too.
For that you can take inspiration from `glfwglue` on glueing them together.
+## SDL2 Glue
+
+There is an inner package `sdl2glue` that can be used to glue together WGPU and SDL2.
+It exports one procedure `GetSurface(wgpu.Instance, ^sdl2.Window) -> wgpu.Surface`.
+The procedure will call the needed target specific procedures and return a surface configured
+for the given window.
+
### Wayland
GLFW supports Wayland from version 3.4 onwards and only if it is compiled with `-DGLFW_EXPOSE_NATIVE_WAYLAND`.