summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2024-09-03 23:24:05 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2024-09-05 22:15:29 -0500
commit1416dc7e6aee2fdf861eb83037c7c3bbc924adce (patch)
tree95c7dfb9346b48ea30864182a91fea7e1ba4b3bc /Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp
parentefc395f7f424f71f4f6ccd055a1dd5817ad8fbc8 (diff)
VideoBackends:Vulkan: Consolidate feature checking into one struct
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp b/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp
index 73c9dfde59..e18a5ffd81 100644
--- a/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKVertexManager.cpp
@@ -92,8 +92,8 @@ bool VertexManager::Initialize()
// Prefer an 8MB buffer if possible, but use less if the device doesn't support this.
// This buffer is potentially going to be addressed as R8s in the future, so we assume
// that one element is one byte.
- const u32 texel_buffer_size = std::min(
- TEXEL_STREAM_BUFFER_SIZE, g_vulkan_context->GetDeviceLimits().maxTexelBufferElements);
+ const u32 texel_buffer_size =
+ std::min(TEXEL_STREAM_BUFFER_SIZE, g_vulkan_context->GetDeviceInfo().maxTexelBufferElements);
m_texel_stream_buffer =
StreamBuffer::Create(VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT, texel_buffer_size);
if (!m_texel_stream_buffer)