diff options
| author | 2023-08-22 23:27:31 +0800 | |
|---|---|---|
| committer | 2023-08-23 23:22:55 +0800 | |
| commit | cc4736fa58d49894d6d199c72331644a01398591 (patch) | |
| tree | 968ca70e6ff1892d8485a4407adf2538603a092c /src/video_core/buffer_cache | |
| parent | Merge pull request #11302 from vonchenplus/vulkan_macos (diff) | |
| download | yuzu-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.h | 4 |
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; | |||
| 62 | using VideoCore::Surface::PixelFormat; | 62 | using VideoCore::Surface::PixelFormat; |
| 63 | using namespace Common::Literals; | 63 | using namespace Common::Literals; |
| 64 | 64 | ||
| 65 | #ifdef __APPLE__ | ||
| 66 | constexpr u32 NUM_VERTEX_BUFFERS = 16; | ||
| 67 | #else | ||
| 65 | constexpr u32 NUM_VERTEX_BUFFERS = 32; | 68 | constexpr u32 NUM_VERTEX_BUFFERS = 32; |
| 69 | #endif | ||
| 66 | constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4; | 70 | constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4; |
| 67 | constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18; | 71 | constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18; |
| 68 | constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8; | 72 | constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8; |