diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-04-26 06:55:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 06:55:43 +0200 |
commit | 7e38dd580f72323985d9331b43bad5ace38e56eb (patch) | |
tree | 11032b9ea3fa1e198f68afc3186e119be390ce56 /src/video_core/renderer_vulkan/vk_rasterizer.h | |
parent | Merge pull request #3791 from Kewlan/hotkey-config-plus (diff) | |
parent | vk_rasterizer: Add lazy default buffer maker and use it for empty buffers (diff) | |
download | yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.tar yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.tar.gz yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.tar.bz2 yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.tar.lz yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.tar.xz yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.tar.zst yuzu-7e38dd580f72323985d9331b43bad5ace38e56eb.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h index 2fa46b0cc..d41a7929e 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.h +++ b/src/video_core/renderer_vulkan/vk_rasterizer.h @@ -155,6 +155,7 @@ private: using Texceptions = std::bitset<Maxwell::NumRenderTargets + 1>; static constexpr std::size_t ZETA_TEXCEPTION_INDEX = 8; + static constexpr VkDeviceSize DEFAULT_BUFFER_SIZE = 4 * sizeof(float); void FlushWork(); @@ -247,6 +248,8 @@ private: RenderPassParams GetRenderPassParams(Texceptions texceptions) const; + VkBuffer DefaultBuffer(); + Core::System& system; Core::Frontend::EmuWindow& render_window; VKScreenInfo& screen_info; @@ -271,6 +274,9 @@ private: VKFenceManager fence_manager; VKQueryCache query_cache; + vk::Buffer default_buffer; + VKMemoryCommit default_buffer_commit; + std::array<View, Maxwell::NumRenderTargets> color_attachments; View zeta_attachment; |