mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-29 14:04:19 +01:00
Use buffer size instead of allocation size for Buffer constructor
Fixes a validation error.
This commit is contained in:
parent
752245c3c8
commit
82296ac5b8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user