|
|
gfx_system & | system |
| |
|
gfx_surface_state | state = gfx_surface_state::no_device |
| |
| subpixel_orientation | subpixel_orientation = subpixel_orientation::BlueRight |
| |
◆ set_device()
| virtual void tt::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 tt::gfx_surface_vulkan.
◆ size()
| virtual extent2 tt::gfx_surface::size |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ update()
| virtual void tt::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 tt::gfx_surface_vulkan.
◆ subpixel_orientation
| subpixel_orientation tt::gfx_surface::subpixel_orientation = subpixel_orientation::BlueRight |
Orientation of the RGB subpixels.
The documentation for this class was generated from the following file: