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

Everything a human needs to know about one device loss. More...

#include <GfxEnums.hpp>

Public Member Functions

bool known () const

Public Attributes

std::string backend
 "WebGL2", "WebGPU".
std::string vendor
std::string renderer
std::string version
 Driver / API version string.

Detailed Description

Everything a human needs to know about one device loss.

Assembled once, at the moment of loss, and then immutable — a report that says only "the context was lost" is what this type exists to replace.

Who a device IS, captured at init() and true whether or not it still lives.

A lost backend cannot be asked who it was (glGetString returns null once the context is gone), so this is read while the device works. Its own type because a device has an identity for its whole life, while a loss report exists only after one.

Definition at line 582 of file GfxEnums.hpp.

Member Function Documentation

◆ known()

bool esengine::GfxDeviceIdentity::known ( ) const
inline

Definition at line 588 of file GfxEnums.hpp.

References backend.

Member Data Documentation

◆ backend

std::string esengine::GfxDeviceIdentity::backend

"WebGL2", "WebGPU".

Definition at line 583 of file GfxEnums.hpp.

Referenced by esengine::deviceIdentity(), esengine::gfxFormatDeviceLost(), and known().

◆ renderer

std::string esengine::GfxDeviceIdentity::renderer

Definition at line 585 of file GfxEnums.hpp.

Referenced by esengine::gfxFormatDeviceLost().

◆ vendor

std::string esengine::GfxDeviceIdentity::vendor

Definition at line 584 of file GfxEnums.hpp.

Referenced by esengine::gfxFormatDeviceLost().

◆ version

std::string esengine::GfxDeviceIdentity::version

Driver / API version string.

Definition at line 586 of file GfxEnums.hpp.

Referenced by esengine::gfxFormatDeviceLost().


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