HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
v1::gfx_device Class Referenceabstract

#include <hikogui/GFX/gfx_device.hpp>

Inheritance diagram for v1::gfx_device:
v1::gfx_device_vulkan

Public Member Functions

std::string string () const noexcept
 
 gfx_device (gfx_system &system) noexcept
 
 gfx_device (const gfx_device &)=delete
 
gfx_deviceoperator= (const gfx_device &)=delete
 
 gfx_device (gfx_device &&)=delete
 
gfx_deviceoperator= (gfx_device &&)=delete
 
virtual int score (gfx_surface const &surface) const =0
 
virtual void log_memory_usage () const noexcept
 

Data Fields

gfx_systemsystem
 
std::string deviceName = "<no device>"
 
uint32_t vendorID = 0
 
uint32_t deviceID = 0
 
uuid deviceUUID = {}
 

Detailed Description

A gfx_device that handles a set of windows.

Member Function Documentation

◆ score()

virtual int v1::gfx_device::score ( gfx_surface const & surface) const
pure virtual

Check if this device is a good match for this window.

It is possible for a window to be created that is not presentable, in case of a headless-virtual-display, however in this case it may still be able to be displayed by any device.

Returns
-1 When not viable, 0 when not presentable, positive values for increasing score.

Implemented in v1::gfx_device_vulkan.


The documentation for this class was generated from the following file: