This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
@@ -0,0 +1,24 @@
#pragma once
#include <cstdint>
#include <volk.h>
#include "Gpu.hpp"
class MipmapGenerator {
private:
const Gpu* m_gpu;
VkCommandBuffer m_commandBuffer;
VkFence m_fence;
VkFence create_fence(const Gpu* gpu);
VkCommandBuffer create_command_buffer(const Gpu* gpu);
public:
explicit MipmapGenerator(const Gpu* gpu);
uint32_t generate(Image image, VkImageLayout oldLayout, VkExtent2D extent, VkImageSubresourceRange range);
};