summaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorGravatar Feng Chen2023-08-22 23:27:31 +0800
committerGravatar Feng Chen2023-08-23 23:22:55 +0800
commitcc4736fa58d49894d6d199c72331644a01398591 (patch)
tree968ca70e6ff1892d8485a4407adf2538603a092c /src/video_core/buffer_cache
parentMerge pull request #11302 from vonchenplus/vulkan_macos (diff)
downloadyuzu-cc4736fa58d49894d6d199c72331644a01398591.tar.gz
yuzu-cc4736fa58d49894d6d199c72331644a01398591.tar.xz
yuzu-cc4736fa58d49894d6d199c72331644a01398591.zip
video_core: set vertex buffer num to 16, because mvk have when using more than 16
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_cache_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache_base.h b/src/video_core/buffer_cache/buffer_cache_base.h
index 0b7135d49..fdc26688d 100644
--- a/src/video_core/buffer_cache/buffer_cache_base.h
+++ b/src/video_core/buffer_cache/buffer_cache_base.h
@@ -62,7 +62,11 @@ using BufferId = SlotId;
62using VideoCore::Surface::PixelFormat; 62using VideoCore::Surface::PixelFormat;
63using namespace Common::Literals; 63using namespace Common::Literals;
64 64
65#ifdef __APPLE__
66constexpr u32 NUM_VERTEX_BUFFERS = 16;
67#else
65constexpr u32 NUM_VERTEX_BUFFERS = 32; 68constexpr u32 NUM_VERTEX_BUFFERS = 32;
69#endif
66constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4; 70constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4;
67constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18; 71constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18;
68constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8; 72constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8;