pleascach/Renderer/RenderPass.hpp
connellpaxton 9c514b658a Fixed resizing, moved depth image to swapchain create cycle.
Also acheived (surface) format selection.
2024-01-22 13:51:19 -05:00

16 lines
329 B
C++

#pragma once
#define VULKAN_HPP_NO_STRUCT_CONSTRUCTORS
#include <vulkan/vulkan.hpp>
struct RenderPass {
vk::RenderPass render_pass;
RenderPass(vk::Device dev, vk::Format image_format, vk::Format depth_format = vk::Format::eD16Unorm);
void cleanup(vk::Device dev);
operator vk::RenderPass&() {
return render_pass;
}
};