|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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. | |
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.
|
inline |
Definition at line 588 of file GfxEnums.hpp.
References backend.
| std::string esengine::GfxDeviceIdentity::backend |
"WebGL2", "WebGPU".
Definition at line 583 of file GfxEnums.hpp.
Referenced by esengine::deviceIdentity(), esengine::gfxFormatDeviceLost(), and known().
| std::string esengine::GfxDeviceIdentity::renderer |
Definition at line 585 of file GfxEnums.hpp.
Referenced by esengine::gfxFormatDeviceLost().
| std::string esengine::GfxDeviceIdentity::vendor |
Definition at line 584 of file GfxEnums.hpp.
Referenced by esengine::gfxFormatDeviceLost().
| std::string esengine::GfxDeviceIdentity::version |
Driver / API version string.
Definition at line 586 of file GfxEnums.hpp.
Referenced by esengine::gfxFormatDeviceLost().