Changeset 3782d66 in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Nov 22, 2019, 9:21:37 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
1802a41
Parents:
aa00bf2
Message:

Add a new pipeline, vertex type, and ubo-related structures to render the ship

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    raa00bf2 r3782d66  
    2929};
    3030
     31struct ShipVertex {
     32   vec3 pos;
     33   vec3 color;
     34};
     35
    3136struct UBO_MvpMat {
    3237   alignas(16) mat4 model;
     
    5257
    5358      UBO_MvpMat modelMvpMats;
     59      UBO_MvpMat shipMvpMats;
    5460
    5561      GameGui* gui;
     
    5763      GraphicsPipeline_Vulkan<ModelVertex> modelPipeline;
    5864      GraphicsPipeline_Vulkan<OverlayVertex> overlayPipeline;
     65      GraphicsPipeline_Vulkan<ShipVertex> shipPipeline;
    5966
    6067      SDL_version sdlVersion;
     
    95102
    96103      vector<VkDescriptorBufferInfo> uniformBufferInfoList;
     104
     105      vector<VkBuffer> uniformBuffers_shipPipeline;
     106      vector<VkDeviceMemory> uniformBuffersMemory_shipPipeline;
     107
     108      vector<VkDescriptorBufferInfo> uniformBufferInfoList_shipPipeline;
    97109
    98110      VulkanImage floorTextureImage;
Note: See TracChangeset for help on using the changeset viewer.