mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Use buffer size instead of allocation size for Buffer constructor
Fixes a validation error.
This commit is contained in:
@ -114,7 +114,7 @@ namespace skyline::gpu::memory {
|
||||
VmaAllocationInfo allocationInfo;
|
||||
ThrowOnFail(vmaCreateBuffer(vmaAllocator, &static_cast<const VkBufferCreateInfo &>(bufferCreateInfo), &allocationCreateInfo, &buffer, &allocation, &allocationInfo));
|
||||
|
||||
return Buffer(reinterpret_cast<u8 *>(allocationInfo.pMappedData), allocationInfo.size, vmaAllocator, buffer, allocation);
|
||||
return Buffer(reinterpret_cast<u8 *>(allocationInfo.pMappedData), size, vmaAllocator, buffer, allocation);
|
||||
}
|
||||
|
||||
Image MemoryManager::AllocateImage(const vk::ImageCreateInfo &createInfo) {
|
||||
|
Reference in New Issue
Block a user