crueter
2 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with
2 additions and
2 deletions
-
src/video_core/renderer_vulkan/vk_buffer_cache.cpp
-
src/video_core/renderer_vulkan/vk_buffer_cache.h
|
|
|
@ -360,7 +360,7 @@ void BufferCacheRuntime::FreeDeferredStagingBuffer(StagingBufferRef& ref) { |
|
|
|
staging_pool.FreeDeferred(ref); |
|
|
|
} |
|
|
|
|
|
|
|
void BufferCacheRuntime::UniformRing::Init(MemoryAllocator& alloc, u32 alignment, u64 bytes) |
|
|
|
void BufferCacheRuntime::UniformRing::Init(MemoryAllocator& alloc, u64 bytes, u32 alignment) |
|
|
|
{ |
|
|
|
for (size_t i = 0; i < NUM_FRAMES; ++i) { |
|
|
|
VkBufferCreateInfo ci{ |
|
|
|
|
|
|
|
@ -172,7 +172,7 @@ private: |
|
|
|
u32 align = 256; |
|
|
|
size_t current_frame = 0; |
|
|
|
|
|
|
|
void Init(MemoryAllocator& alloc, u32 alignment, u64 bytes); |
|
|
|
void Init(MemoryAllocator& alloc, u64 bytes, u32 alignment); |
|
|
|
void BeginFrame() { |
|
|
|
current_frame = (current_frame + 1) % NUM_FRAMES; |
|
|
|
head = 0; |
|
|
|
|