1
0
Fork 0
Univerxel/src/client/render/vk/Pipeline.hpp

25 lines
455 B
C++

#pragma once
#include "forward.hpp"
namespace render::vk {
class Pipeline {
public:
Pipeline(VkDevice, const PhysicalDeviceInfo&, const renderOptions&);
~Pipeline();
PipelineRef getRef() { return std::make_pair(renderPass, graphicsPipeline); }
private:
VkDevice device;
VkShaderModule vsShader;
VkShaderModule fsShader;
VkRenderPass renderPass;
VkPipelineLayout pipelineLayout;
VkPipeline graphicsPipeline;
};
}