Update src/video_core/renderer_vulkan/vk_buffer_cache.cpp
Some checks failed
eden-license / license-header (pull_request) Failing after 29s

This commit is contained in:
wildcard 2025-10-08 19:03:02 +02:00 committed by crueter
parent 6544cdd446
commit 8f11ce89e3

View file

@ -338,7 +338,7 @@ BufferCacheRuntime::BufferCacheRuntime(const Device& device_, MemoryAllocator& m
compute_pass_descriptor_queue); compute_pass_descriptor_queue);
} }
const u32 ubo_align = static_cast<u32>( const u32 ubo_align = static_cast<u32>(
device.GetUniformBufferAlignment() /* if you have it */ device.GetUniformBufferAlignment() //check if the device has it
); );
// add the ability to change the size in settings in future // add the ability to change the size in settings in future
uniform_ring.Init(device, memory_allocator, 8 * 1024 * 1024 /* 8 MiB */, ubo_align ? ubo_align : 256); uniform_ring.Init(device, memory_allocator, 8 * 1024 * 1024 /* 8 MiB */, ubo_align ? ubo_align : 256);