Platform-native WebGPU surface creation helper for the geode_embed example.
More...
#include <webgpu/webgpu.hpp>
Platform-native WebGPU surface creation helper for the geode_embed example.
◆ CreateSurfaceFromGlfwWindow()
| wgpu::Surface donner::example::CreateSurfaceFromGlfwWindow |
( |
const wgpu::Instance & | instance, |
|
|
GLFWwindow * | window ) |
|
nodiscard |
Create a WebGPU surface backed by the platform-native handle of window.
- Parameters
-
| instance | WebGPU instance used to create the surface. |
| window | GLFW window that owns the native platform window. |
- Returns
- A valid surface, or an invalid surface when native handle extraction fails.