Add additional Asset types

- Add Framebuffer Asset
- Add Pipeline Asset
- Add RenderTexture Asset
This commit is contained in:
Thraix
2023-04-22 21:00:34 +02:00
parent 0246e89039
commit 1731bb1dd5
34 changed files with 322 additions and 171 deletions
@@ -18,6 +18,15 @@ namespace Copium
vkDestroyImageView(Vulkan::GetDevice(), imageView, nullptr);
}
void DepthAttachment::Resize(int width, int height)
{
vkDestroyImage(Vulkan::GetDevice(), image, nullptr);
vkFreeMemory(Vulkan::GetDevice(), imageMemory, nullptr);
vkDestroyImageView(Vulkan::GetDevice(), imageView, nullptr);
InitializeDepthAttachment(width, height);
}
VkDescriptorImageInfo DepthAttachment::GetDescriptorImageInfo(int index) const
{
VkDescriptorImageInfo imageInfo{};