Changeset 90880fb in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Jun 17, 2021, 11:59:14 PM (3 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
2f4ff8c
Parents:
5ea0a37
git-author:
Dmitry Portnoy <dportnoy@…> (06/13/21 23:57:17)
git-committer:
Dmitry Portnoy <dportnoy@…> (06/17/21 23:59:14)
Message:

Start using the VulkanBuffer class for the non-per-object uniforms (this means the view and projection matrices for all pipelines, as well as the current time for the explosion pipeline)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r5ea0a37 r90880fb  
    311311      GraphicsPipeline_Vulkan<ExplosionVertex> explosionPipeline;
    312312
     313      BufferSet uniformBuffers_modelPipeline;
    313314      BufferSet storageBuffers_modelPipeline;
     315
     316      VulkanBuffer<UBO_VP_mats> vp_mats_modelPipeline;
    314317      VulkanBuffer<SSBO_ModelObject> objects_modelPipeline;
    315       BufferSet uniformBuffers_modelPipeline;
    316 
     318
     319      BufferSet uniformBuffers_shipPipeline;
    317320      BufferSet storageBuffers_shipPipeline;
     321
     322      VulkanBuffer<UBO_VP_mats> vp_mats_shipPipeline;
    318323      VulkanBuffer<SSBO_ModelObject> objects_shipPipeline;
    319       BufferSet uniformBuffers_shipPipeline;
    320 
     324
     325      BufferSet uniformBuffers_asteroidPipeline;
    321326      BufferSet storageBuffers_asteroidPipeline;
     327
     328      VulkanBuffer<UBO_VP_mats> vp_mats_asteroidPipeline;
    322329      VulkanBuffer<SSBO_Asteroid> objects_asteroidPipeline;
    323       BufferSet uniformBuffers_asteroidPipeline;
    324 
     330
     331      BufferSet uniformBuffers_laserPipeline;
    325332      BufferSet storageBuffers_laserPipeline;
     333
     334      VulkanBuffer<UBO_VP_mats> vp_mats_laserPipeline;
    326335      VulkanBuffer<SSBO_Laser> objects_laserPipeline;
    327       BufferSet uniformBuffers_laserPipeline;
    328 
     336
     337      BufferSet uniformBuffers_explosionPipeline;
    329338      BufferSet storageBuffers_explosionPipeline;
     339
     340      VulkanBuffer<UBO_Explosion> uniforms_explosionPipeline;
    330341      VulkanBuffer<SSBO_Explosion> objects_explosionPipeline;
    331       BufferSet uniformBuffers_explosionPipeline;
    332342
    333343      // TODO: Maybe make the ubo objects part of the pipeline class since there's only one ubo
     
    340350
    341351      vector<SceneObject<ModelVertex>> modelObjects;
    342 
    343       UBO_VP_mats object_VP_mats;
    344 
    345352      vector<SceneObject<ModelVertex>> shipObjects;
    346 
    347       UBO_VP_mats ship_VP_mats;
    348 
    349353      vector<SceneObject<ModelVertex>> asteroidObjects;
    350 
    351       UBO_VP_mats asteroid_VP_mats;
    352 
    353354      vector<SceneObject<LaserVertex>> laserObjects;
    354 
    355       UBO_VP_mats laser_VP_mats;
    356 
    357355      vector<SceneObject<ExplosionVertex>> explosionObjects;
    358356
    359       UBO_Explosion explosion_UBO;
     357      //UBO_Explosion explosion_UBO;
    360358
    361359      vector<BaseEffectOverTime*> effects;
Note: See TracChangeset for help on using the changeset viewer.