Changeset 771b33a in opengl-game for graphics-pipeline_vulkan.hpp
- Timestamp:
- Oct 4, 2019, 8:39:46 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- b794178
- Parents:
- 0b1b52d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graphics-pipeline_vulkan.hpp
r0b1b52d r771b33a 4 4 #include "graphics-pipeline.hpp" 5 5 6 #include <vector> 7 6 8 #include <vulkan/vulkan.h> 7 8 #include <vector>9 9 10 10 class GraphicsPipeline_Vulkan : public GraphicsPipeline { 11 11 public: 12 GraphicsPipeline_Vulkan(VkDevice device );12 GraphicsPipeline_Vulkan(VkDevice device, Viewport viewport, int vertexSize); 13 13 ~GraphicsPipeline_Vulkan(); 14 14 15 void addAttribute(VkFormat format, size_t offset); 15 16 void createPipeline(string vertShaderFile, string fragShaderFile); 16 17 17 18 private: 18 19 VkDevice device; 20 VkVertexInputBindingDescription bindingDescription; 21 vector<VkVertexInputAttributeDescription> attributeDescriptions; 19 22 20 23 VkShaderModule createShaderModule(const vector<char>& code);
Note:
See TracChangeset
for help on using the changeset viewer.