Render to offscreen image and window resizing

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-12-02 21:26:53 +02:00
parent 08cb595ed2
commit 94eb26d9bc
8 changed files with 321 additions and 34 deletions

View File

@@ -40,7 +40,18 @@ template<typename F> privDefer<F> defer_func(F f) { return privDefer<F>(f); }
namespace vkutil {
void transition_image(VkCommandBuffer cmd, VkImage image,
VkImageLayout current_layout, VkImageLayout new_layout);
auto transition_image(VkCommandBuffer cmd, VkImage image,
VkImageLayout current_layout, VkImageLayout new_layout) -> void;
auto copy_image_to_image(VkCommandBuffer cmd, VkImage source,
VkImage destination, VkExtent2D src_size, VkExtent2D dst_size) -> void;
} // namespace vkutil
namespace vkinit {
auto image_create_info(VkFormat format, VkImageUsageFlags usage_flags,
VkExtent3D extent) -> VkImageCreateInfo;
auto imageview_create_info(VkFormat format, VkImage image,
VkImageAspectFlags aspect_flags) -> VkImageViewCreateInfo;
} // namespace vkinit