fixing compilation issues, adding profile

This commit is contained in:
Kbz-8
2023-11-10 09:19:47 +01:00
parent e6ed390e84
commit 85c43dabf4
13 changed files with 109 additions and 29 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/25 11:59:07 by maldavid #+# #+# */
/* Updated: 2023/11/09 19:35:26 by maldavid ### ########.fr */
/* Updated: 2023/11/10 08:24:11 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -43,7 +43,7 @@ namespace mlx
VmaAllocationCreateInfo alloc_info{};
alloc_info.usage = VMA_MEMORY_USAGE_GPU_ONLY;
_allocation = Render_Core::get().getAllocator().createImage(&imageInfo, &alloc_info, _image);
_allocation = Render_Core::get().getAllocator().createImage(&imageInfo, &alloc_info, _image, _alloc_infos);
_pool.init();
}

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/25 11:54:21 by maldavid #+# #+# */
/* Updated: 2023/11/09 19:29:54 by maldavid ### ########.fr */
/* Updated: 2023/11/10 08:23:59 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -50,6 +50,7 @@ namespace mlx
CmdBuffer _transfer_cmd;
CmdPool _pool;
VmaAllocation _allocation;
VmaAllocationInfo _alloc_infos;
VkImage _image = VK_NULL_HANDLE;
VkImageView _image_view = VK_NULL_HANDLE;
VkSampler _sampler = VK_NULL_HANDLE;