Linux GLFW surface-aware Vulkan selection for the native Geode embed example. More...
#include <cstring>#include <memory>#include <optional>#include <span>#include <utility>#include "donner/gpu/vulkan/VulkanDevice.h"#include "examples/geode_embed_surface.h"#include "GLFW/glfw3.h"Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| NativeEmbedSurface | donner::example::PrepareNativeEmbedSurface (GLFWwindow *window) |
| Prepare a native window surface and select a root that can present to it. A null root means preparation failed; call RetireNativeEmbedSurface even then. | |
| bool | donner::example::RetireNativeEmbedSurface (NativeEmbedSurface &surface, GLFWwindow *window) |
| Release the embedder surface after the runtime surface and Geode context are destroyed. False means the driver could not prove retirement; the helper retains the GLFW window and native root until process exit, so the caller must not destroy the window or terminate GLFW. | |
Linux GLFW surface-aware Vulkan selection for the native Geode embed example.