|
|
gfx_system & | system |
| |
|
gfx_surface_state | state = gfx_surface_state::has_window |
| |
|
gfx_surface_loss | loss = gfx_surface_loss::none |
| |
◆ set_device()
| virtual void v1::gfx_surface::set_device |
( |
gfx_device * | device | ) |
|
|
virtualnoexcept |
Set GPU device to manage this window. Change of the device may be done at runtime.
- Parameters
-
| device | The device to use for rendering, may be nullptr. |
Reimplemented in v1::gfx_surface_vulkan.
◆ size()
| virtual extent2 v1::gfx_surface::size |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ update()
| virtual void v1::gfx_surface::update |
( |
extent2 | new_size | ) |
|
|
pure virtualnoexcept |
Update the surface.
This function will check if the graphic pipeline and swapchain needs to be build, rebuild, or torn down.
- Parameters
-
| new_size | The size of the window. |
Implemented in v1::gfx_surface_vulkan.
The documentation for this class was generated from the following file: