Vulkan: Implement Quad-Buffered stereoscopy support.

This commit is contained in:
Jules Blok
2017-06-26 21:08:21 +02:00
parent f3508742ac
commit 1f2d43c870
4 changed files with 21 additions and 3 deletions

View File

@ -32,6 +32,7 @@ public:
VkSurfaceKHR GetSurface() const { return m_surface; }
VkSurfaceFormatKHR GetSurfaceFormat() const { return m_surface_format; }
bool IsVSyncEnabled() const { return m_vsync_enabled; }
bool IsStereoEnabled() const { return m_layers == 2; }
VkSwapchainKHR GetSwapChain() const { return m_swap_chain; }
VkRenderPass GetRenderPass() const { return m_render_pass; }
u32 GetWidth() const { return m_width; }
@ -94,6 +95,7 @@ private:
u32 m_width = 0;
u32 m_height = 0;
u32 m_layers = 0;
};
} // namespace Vulkan