// ============================================= // Aster: image.h // Copyright (c) 2020-2024 Anish Bhobe // ============================================= #pragma once #include "global.h" struct Device; struct Image { vk::Image m_Image = nullptr; VmaAllocation m_Allocation = nullptr; vk::Extent3D m_Extent; usize m_Size = 0; void Destroy(const Device *device); }; struct Texture : Image { void Init(const Device *device, vk::Extent2D extent, bool isMipmapped, cstr name = nullptr); };