Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
geode_embed_surface.h File Reference

Platform-native WebGPU surface creation helper for the geode_embed example. The implementation lives in platform-specific translation units (geode_embed_surface_linux.cc, geode_embed_surface_macos.mm) that include native-window headers (X11, Cocoa) in isolation so their macro pollution — X11/Xlib.h defining None, True, False, Status — never reaches donner headers. The consumer (geode_embed.cc) only sees this small facade. More...

#include <webgpu/webgpu.hpp>
Include dependency graph for geode_embed_surface.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

wgpu::Surface donner::example::CreateSurfaceFromGlfwWindow (const wgpu::Instance &instance, GLFWwindow *window)
 Create a wgpu::Surface backed by the platform-native handle of window. Returns an invalid wgpu::Surface when the platform is unsupported or window-handle extraction failed.

Detailed Description

Platform-native WebGPU surface creation helper for the geode_embed example. The implementation lives in platform-specific translation units (geode_embed_surface_linux.cc, geode_embed_surface_macos.mm) that include native-window headers (X11, Cocoa) in isolation so their macro pollution — X11/Xlib.h defining None, True, False, Status — never reaches donner headers. The consumer (geode_embed.cc) only sees this small facade.