diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-17 11:48:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 11:48:44 -0400 |
| commit | b577d7a55f476464fb7bc3616e3781fae2be01c3 (patch) | |
| tree | 4857d8227fb19dd73e33877b74904973e5f7e8ac /src/video_core/buffer_cache | |
| parent | 2244b613cf804f4af8ff7546b5191d5a62ffb466 (diff) | |
| parent | e69eebb14a98cf678940ae113abb313ee0284911 (diff) | |
Merge pull request #11349 from vonchenplus/buffer_cache_crash
video_core: Fix moltenvk crash on macos
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 c4f6e8d12..eed267361 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; using VideoCore::Surface::PixelFormat; using namespace Common::Literals; +#ifdef __APPLE__ +constexpr u32 NUM_VERTEX_BUFFERS = 16; +#else constexpr u32 NUM_VERTEX_BUFFERS = 32; +#endif constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4; constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18; constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8; |
