EchoMap
2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Toggle main menu visibility
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
13
struct
GLFWwindow;
14
15
namespace
echomap
16
{
17
21
class
SurfaceFactory
22
{
23
public
:
33
static
wgpu::Surface
create_surface
(
34
const
wgpu::Instance& instance,
35
GLFWwindow* window
36
);
37
38
private
:
39
// ReSharper disable once CppDoxygenSyntaxError
58
static
std::unique_ptr<wgpu::ChainedStruct>
get_surface_descriptor
(GLFWwindow* window);
59
};
60
61
}
// namespace echomap
62
63
#endif
// ECHOMAP_SURFACEFACTORY_HPP
echomap::SurfaceFactory
Provides static helpers to create and bind a WebGPU Surface to a GLFW window across Wasm and non-Wasm...
Definition
SurfaceFactory.hpp:22
echomap::SurfaceFactory::create_surface
static wgpu::Surface create_surface(const wgpu::Instance &instance, GLFWwindow *window)
Creates and binds a Surface to the given GLFW window.
Definition
SurfaceFactory.cpp:70
echomap::SurfaceFactory::get_surface_descriptor
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.
Definition
SurfaceFactory.cpp:85
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
std::unique_ptr
src
platform
SurfaceFactory.hpp
Generated by
1.17.0