source: opengl-game/graphics-pipeline_vulkan.hpp@ ee75487

feature/imgui-sdl points-test
Last change on this file since ee75487 was 7d2b0b9, checked in by Dmitry Portnoy <dmp1488@…>, 5 years ago

Add and begin implementing a GraphicsPipeline class to hold info for the Vulkan graphics pipeline

  • Property mode set to 100644
File size: 580 bytes
Line 
1#ifndef _GRAPHICS_PIPELINE_VULKAN_H
2#define _GRAPHICS_PIPELINE_VULKAN_H
3
4#include "graphics-pipeline.hpp"
5
6#include <vulkan/vulkan.h>
7
8#include <vector>
9
10class GraphicsPipeline_Vulkan : public GraphicsPipeline {
11 public:
12 GraphicsPipeline_Vulkan(VkDevice device);
13 ~GraphicsPipeline_Vulkan();
14
15 void createPipeline(string vertShaderFile, string fragShaderFile);
16
17 private:
18 VkDevice device;
19
20 VkShaderModule createShaderModule(const vector<char>& code);
21 vector<char> readFile(const string& filename);
22};
23
24#endif // _GRAPHICS_PIPELINE_VULKAN_H
Note: See TracBrowser for help on using the repository browser.