Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::WebGPUDevice::NativeSurface Struct Reference
module nullptr

#include <WebGPUDevice.hpp>

Public Attributes

NativeWindowKind kind
void * handle
void * instance = nullptr

Detailed Description

A CAMetalLayer* / ANativeWindow* / HWND / wl_surface* for a native-C++ build; compiled out of the wasm build, where the host injects an already-built surface instead.

Definition at line 272 of file WebGPUDevice.hpp.

Member Data Documentation

◆ handle

void* esengine::WebGPUDevice::NativeSurface::handle

The window: an HWND, a wl_surface* — or, for Xlib, the Window XID, which is an integer and travels here as one.

Definition at line 276 of file WebGPUDevice.hpp.

Referenced by esengine::WebGPUDevice::configureSurface().

◆ instance

void* esengine::WebGPUDevice::NativeSurface::instance = nullptr

What the window belongs to, which the descriptor asks for beside it: the HINSTANCE on Win32, the wl_display* on Wayland, the Display* on Xlib.

Definition at line 280 of file WebGPUDevice.hpp.

Referenced by esengine::WebGPUDevice::configureSurface().

◆ kind

NativeWindowKind esengine::WebGPUDevice::NativeSurface::kind

Definition at line 273 of file WebGPUDevice.hpp.

Referenced by esengine::WebGPUDevice::configureSurface().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/webgpu/WebGPUDevice.hpp