diff options
| author | Stenzek <stenzek@gmail.com> | 2017-04-30 18:07:57 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-09-11 20:01:45 +1000 |
| commit | 836b9b9acbc2ff2d10d6f3c81e64b7b10b22f023 (patch) | |
| tree | 78f87a4af8176ec94256d3c7c63969db0d91931b /Source/Core/VideoBackends/Vulkan/FramebufferManager.h | |
| parent | 2869c570f1d0b67d2ee4304ea528bef3ef4b563e (diff) | |
Renderer: Move cull mode to a rasterization state object
Also moves logic for primitive handling to VideoCommon.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/FramebufferManager.h')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/FramebufferManager.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/FramebufferManager.h b/Source/Core/VideoBackends/Vulkan/FramebufferManager.h index db4455756d..ca7065c3bb 100644 --- a/Source/Core/VideoBackends/Vulkan/FramebufferManager.h +++ b/Source/Core/VideoBackends/Vulkan/FramebufferManager.h @@ -11,6 +11,7 @@ #include "VideoBackends/Vulkan/Constants.h" #include "VideoBackends/Vulkan/TextureCache.h" #include "VideoCommon/FramebufferManagerBase.h" +#include "VideoCommon/RenderState.h" namespace Vulkan { @@ -34,13 +35,14 @@ public: VkRenderPass GetEFBLoadRenderPass() const { return m_efb_load_render_pass; } VkRenderPass GetEFBClearRenderPass() const { return m_efb_clear_render_pass; } - u32 GetEFBWidth() const { return m_efb_width; } - u32 GetEFBHeight() const { return m_efb_height; } - u32 GetEFBLayers() const { return m_efb_layers; } - VkSampleCountFlagBits GetEFBSamples() const { return m_efb_samples; } Texture2D* GetEFBColorTexture() const { return m_efb_color_texture.get(); } Texture2D* GetEFBDepthTexture() const { return m_efb_depth_texture.get(); } VkFramebuffer GetEFBFramebuffer() const { return m_efb_framebuffer; } + u32 GetEFBWidth() const; + u32 GetEFBHeight() const; + u32 GetEFBLayers() const; + VkSampleCountFlagBits GetEFBSamples() const; + MultisamplingState GetEFBMultisamplingState() const; std::pair<u32, u32> GetTargetSize() const override; std::unique_ptr<XFBSourceBase> CreateXFBSource(unsigned int target_width, @@ -124,11 +126,6 @@ private: VkRenderPass m_efb_clear_render_pass = VK_NULL_HANDLE; VkRenderPass m_depth_resolve_render_pass = VK_NULL_HANDLE; - u32 m_efb_width = 0; - u32 m_efb_height = 0; - u32 m_efb_layers = 1; - VkSampleCountFlagBits m_efb_samples = VK_SAMPLE_COUNT_1_BIT; - std::unique_ptr<Texture2D> m_efb_color_texture; std::unique_ptr<Texture2D> m_efb_convert_color_texture; std::unique_ptr<Texture2D> m_efb_depth_texture; @@ -160,7 +157,7 @@ private: std::unique_ptr<StreamBuffer> m_poke_vertex_stream_buffer; std::vector<EFBPokeVertex> m_color_poke_vertices; std::vector<EFBPokeVertex> m_depth_poke_vertices; - VkPrimitiveTopology m_poke_primitive_topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; + PrimitiveType m_poke_primitive = PrimitiveType::TriangleStrip; VkRenderPass m_copy_color_render_pass = VK_NULL_HANDLE; VkRenderPass m_copy_depth_render_pass = VK_NULL_HANDLE; |
