EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
SurfaceFactory.hpp
Go to the documentation of this file.
1
7
8#ifndef ECHOMAP_SURFACEFACTORY_HPP
9#define ECHOMAP_SURFACEFACTORY_HPP
10
11#include <webgpu/webgpu_cpp.h>
12
13struct GLFWwindow;
14
15namespace echomap
16{
17
22{
23public:
33 static wgpu::Surface create_surface(
34 const wgpu::Instance& instance,
35 GLFWwindow* window
36 );
37
38private:
39 // ReSharper disable once CppDoxygenSyntaxError
59};
60
61} // namespace echomap
62
63#endif // ECHOMAP_SURFACEFACTORY_HPP
Provides static helpers to create and bind a WebGPU Surface to a GLFW window across Wasm and non-Wasm...
static wgpu::Surface create_surface(const wgpu::Instance &instance, GLFWwindow *window)
Creates and binds a Surface to the given GLFW window.
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.
The main EchoMap outermost namespace for all non-exported symbols.