|
| VulkanSwapChain (const VulkanDevice &device, const Format &surfaceFormat=Format::B8G8R8A8_SRGB, const Size2d &renderArea={ 800, 600 }, const UInt32 &buffers=3) |
| Initializes a Vulkan swap chain. More...
|
|
| VulkanSwapChain (const VulkanSwapChain &)=delete |
|
| VulkanSwapChain (VulkanSwapChain &&)=delete |
|
virtual | ~VulkanSwapChain () noexcept |
|
virtual const VkSemaphore & | semaphore () const noexcept |
| Returns a reference of the current swap semaphore, a command queue can wait on for presenting. More...
|
|
virtual const Format & | surfaceFormat () const noexcept override |
| Returns the swap chain image format. More...
|
|
virtual const UInt32 & | buffers () const noexcept override |
| Returns the number of images in the swap chain. More...
|
|
virtual const Size2d & | renderArea () const noexcept override |
| Returns the size of the render area. More...
|
|
virtual Array< const IVulkanImage * > | images () const noexcept override |
|
virtual void | present (const VulkanFrameBuffer &frameBuffer) const override |
|
virtual Array< Format > | getSurfaceFormats () const noexcept override |
| Returns an array of supported formats, that can be drawn to the surface. More...
|
|
virtual void | reset (const Format &surfaceFormat, const Size2d &renderArea, const UInt32 &buffers) override |
| Causes the swap chain to be re-created. All frame and command buffers will be invalidated and rebuilt. More...
|
|
virtual UInt32 | swapBackBuffer () const override |
| Swaps the front buffer with the next back buffer in order. More...
|
|
virtual | ~SwapChain () noexcept=default |
|
virtual Array< const image_interface_type * > | images () const noexcept=0 |
|
virtual void | present (const frame_buffer_type &frameBuffer) const=0 |
| Queues a present that gets executed after frameBuffer signals its readiness. More...
|
|
virtual void | present (const IFrameBuffer &frameBuffer) const override |
| Queues a present that gets executed after frameBuffer signals its readiness. More...
|
|
virtual | ~ISwapChain () noexcept=default |
|
virtual const Format & | surfaceFormat () const noexcept=0 |
| Returns the swap chain image format. More...
|
|
virtual const UInt32 & | buffers () const noexcept=0 |
| Returns the number of images in the swap chain. More...
|
|
virtual const Size2d & | renderArea () const noexcept=0 |
| Returns the size of the render area. More...
|
|
Array< const IImage * > | images () const noexcept |
| Returns an array of the swap chain present images. More...
|
|
virtual void | present (const IFrameBuffer &frameBuffer) const =0 |
| Queues a present that gets executed after frameBuffer signals its readiness. More...
|
|
virtual Array< Format > | getSurfaceFormats () const noexcept=0 |
| Returns an array of supported formats, that can be drawn to the surface. More...
|
|
virtual void | reset (const Format &surfaceFormat, const Size2d &renderArea, const UInt32 &buffers)=0 |
| Causes the swap chain to be re-created. All frame and command buffers will be invalidated and rebuilt. More...
|
|
virtual UInt32 | swapBackBuffer () const =0 |
| Swaps the front buffer with the next back buffer in order. More...
|
|
Implements a Vulkan swap chain.