Changeset b8777b7 in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Nov 16, 2019, 8:38:22 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
5a0242e
Parents:
cd487fb
Message:

Templatize GraphicsPipeline_Vulkan by adding a VertexType parameter and moving all the function definitions into the header file, separate the model and overlay pipelines into separate variables in VulkanGame instead of storing them in a vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    rcd487fb rb8777b7  
    1515#endif
    1616
    17 // TODO: Figure out if these structs should be defined in the VulkanGame class
    18 
    19 struct Vertex {
     17struct ModelVertex {
    2018   glm::vec3 pos;
    2119   glm::vec3 color;
     
    4038      GameGui* gui;
    4139
    42       vector<GraphicsPipeline_Vulkan> graphicsPipelines;
     40      GraphicsPipeline_Vulkan<ModelVertex> modelPipeline;
     41      GraphicsPipeline_Vulkan<OverlayVertex> overlayPipeline;
    4342
    4443      SDL_version sdlVersion;
Note: See TracChangeset for help on using the changeset viewer.