This commit is contained in:
2025-07-09 07:51:08 +06:00
parent 4d23b69ecd
commit c4532ac903

View File

@@ -2644,6 +2644,7 @@ Buffer::Buffer(Vulkan *instance, VkDeviceSize bufferSize, VkBufferUsageFlags usa
vkAllocateMemory(instance->Graphics.Device, &memAlloc, nullptr, &Memory);
if(res)
MAKE_ERROR("VkHandler: ошибка выделения памяти на устройстве");
assert(Memory);
vkBindBufferMemory(instance->Graphics.Device, Buff, Memory, 0);
}