Changeset 771b33a in opengl-game for graphics-pipeline_vulkan.hpp


Ignore:
Timestamp:
Oct 4, 2019, 8:39:46 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
b794178
Parents:
0b1b52d
Message:

In openglgame, port over some more of the pipeline creation code and the functionality to specify and initialize varying attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graphics-pipeline_vulkan.hpp

    r0b1b52d r771b33a  
    44#include "graphics-pipeline.hpp"
    55
     6#include <vector>
     7
    68#include <vulkan/vulkan.h>
    7 
    8 #include <vector>
    99
    1010class GraphicsPipeline_Vulkan : public GraphicsPipeline {
    1111   public:
    12       GraphicsPipeline_Vulkan(VkDevice device);
     12      GraphicsPipeline_Vulkan(VkDevice device, Viewport viewport, int vertexSize);
    1313      ~GraphicsPipeline_Vulkan();
    1414
     15      void addAttribute(VkFormat format, size_t offset);
    1516      void createPipeline(string vertShaderFile, string fragShaderFile);
    1617   
    1718   private:
    1819      VkDevice device;
     20      VkVertexInputBindingDescription bindingDescription;
     21      vector<VkVertexInputAttributeDescription> attributeDescriptions;
    1922
    2023      VkShaderModule createShaderModule(const vector<char>& code);
Note: See TracChangeset for help on using the changeset viewer.