Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
EditorWgpuSurface.h File Reference

Platform-native WebGPU surface creation for editor GLFW windows. More...

#include <webgpu/webgpu.hpp>
Include dependency graph for EditorWgpuSurface.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::editor::gui::CreateWgpuSurfaceFromGlfwWindow (const wgpu::Instance &instance, GLFWwindow *window)
 Create a WebGPU surface backed by the platform-native handle of window.

Detailed Description

Platform-native WebGPU surface creation for editor GLFW windows.

Function Documentation

◆ CreateWgpuSurfaceFromGlfwWindow()

wgpu::Surface donner::editor::gui::CreateWgpuSurfaceFromGlfwWindow ( const wgpu::Instance & instance,
GLFWwindow * window )
nodiscard

Create a WebGPU surface backed by the platform-native handle of window.

Parameters
instanceWebGPU instance used to create the surface.
windowGLFW window that owns the native platform window.
Returns
A valid surface, or an invalid surface when native handle extraction fails.