|
|
Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
|
macOS (Cocoa/Metal) implementation of CreateWgpuSurfaceFromGlfwWindow. More...
#include "donner/editor/gui/EditorWgpuSurface.h"import <Cocoa/Cocoa.h>import <QuartzCore/CAMetalLayer.h>#include "GLFW/glfw3.h"#include "GLFW/glfw3native.h"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. | |
macOS (Cocoa/Metal) implementation of CreateWgpuSurfaceFromGlfwWindow.
|
nodiscard |
Create a WebGPU surface backed by the platform-native handle of window.
| instance | WebGPU instance used to create the surface. |
| window | GLFW window that owns the native platform window. |