19 lines
398 B
C++
19 lines
398 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;
|
|
}
|
|
operator const vk::RenderPass& () const {
|
|
return render_pass;
|
|
}
|
|
}; |