pleascach/Renderer/RenderPass.hpp
connellpaxton c9e2877530 Added shader compilation to build process
Created mechanism to construct pipelines, still need to finish debugging that.
2024-01-25 17:07:47 -05:00

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;
}
};