[Vulkan UI] CircularBuffer: Actually use provided alignment
This commit is contained in:
parent
c9a5553fe9
commit
2e0f99d49d
|
@ -42,7 +42,7 @@ CircularBuffer::CircularBuffer(VulkanDevice* device, VkBufferUsageFlags usage,
|
||||||
|
|
||||||
VkMemoryRequirements reqs;
|
VkMemoryRequirements reqs;
|
||||||
vkGetBufferMemoryRequirements(*device_, gpu_buffer_, &reqs);
|
vkGetBufferMemoryRequirements(*device_, gpu_buffer_, &reqs);
|
||||||
alignment_ = reqs.alignment;
|
alignment_ = xe::round_up(alignment, reqs.alignment);
|
||||||
}
|
}
|
||||||
CircularBuffer::~CircularBuffer() { Shutdown(); }
|
CircularBuffer::~CircularBuffer() { Shutdown(); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue