|
|
| gfx_surface (vk::SurfaceKHR surface) |
|
| gfx_surface (const gfx_surface &)=delete |
|
gfx_surface & | operator= (const gfx_surface &)=delete |
|
| gfx_surface (gfx_surface &&)=delete |
|
gfx_surface & | operator= (gfx_surface &&)=delete |
| void | set_device (gfx_device *device) noexcept |
|
gfx_device * | device () const noexcept |
|
extent2 | size () const noexcept |
|
void | update (extent2 new_size) noexcept |
|
draw_context | render_start (aarectangle redraw_rectangle) |
|
void | render_finish (draw_context const &context) |
|
void | add_delegate (gfx_surface_delegate *delegate) noexcept |
|
void | remove_delegate (gfx_surface_delegate *delegate) noexcept |
|
|
static constexpr uint32_t | defaultNumberOfSwapchainImages = 2 |
|
static const vk::Format | depthImageFormat = vk::Format::eD16Unorm |
|
static const vk::Format | colorImageFormat = vk::Format::eR16G16B16A16Sfloat |
◆ set_device()
| void v1::gfx_surface::set_device |
( |
gfx_device * | device | ) |
|
|
inlinenoexcept |
Set GPU device to manage this window. Change of the device may be done at runtime.
- Parameters
-
| new_device | The device to use for rendering, may be nullptr. |
The documentation for this class was generated from the following files: