|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
Provides static helpers to create and bind a WebGPU Surface to a GLFW window across Wasm and non-Wasm platforms. More...
#include <SurfaceFactory.hpp>
Static Public Member Functions | |
| static wgpu::Surface | create_surface (const wgpu::Instance &instance, GLFWwindow *window) |
| Creates and binds a Surface to the given GLFW window. | |
Static Private Member Functions | |
| static std::unique_ptr< wgpu::ChainedStruct > | get_surface_descriptor (GLFWwindow *window) |
| Produce an owning container of the WebGPU Surface descriptor for the given GLFW window. | |
Provides static helpers to create and bind a WebGPU Surface to a GLFW window across Wasm and non-Wasm platforms.
Definition at line 21 of file SurfaceFactory.hpp.
|
static |
Creates and binds a Surface to the given GLFW window.
| instance | The WebGPU Instance in which the Surface should be created. |
| window | The GLFW window pointer to the target window. |
| std::runtime_error | A Surface could not be created and bound for the given Window. |
Definition at line 70 of file SurfaceFactory.cpp.
|
staticprivate |
Produce an owning container of the WebGPU Surface descriptor for the given GLFW window.
Supported platforms:
| window | The GLFW window to bind to the WebGPU surface. |
nullptr is returned. Definition at line 85 of file SurfaceFactory.cpp.