Changeset 860a0da in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Feb 18, 2020, 9:36:51 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
2da64ef
Parents:
d25381b
Message:

In VulkanGame, move fields related to the ssbo, as well as code to create thee ssbo, destroy it, and create a descriptor for it, into GraphicsPipeline_Vulkan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    rd25381b r860a0da  
    142142      bool framebufferResized;
    143143
    144       // TODO: I should probably rename the uniformBuffer* and storageBuffer*
    145       // variables to better reflect the data they hold
    146 
    147       // TODO: Create a struct that holds the buffers, memory, and info objects (Probably in VulkanUtils)
    148 
    149144      GraphicsPipeline_Vulkan<OverlayVertex, void*> overlayPipeline;
    150145      vector<SceneObject<OverlayVertex, void*>> overlayObjects;
     146
     147      // TODO: Maybe make the ubo objects part of the pipeline class since there's only one ubo
     148      // per pipeline.
     149      // Or maybe create a higher level wrapper around GraphicsPipeline_Vulkan to hold things like
     150      // the objects vector, the ubo, and the ssbo
    151151
    152152      GraphicsPipeline_Vulkan<ModelVertex, SSBO_ModelObject> modelPipeline;
     
    157157      vector<VkDescriptorBufferInfo> uniformBufferInfoList_modelPipeline;
    158158
    159       vector<VkBuffer> storageBuffers_modelPipeline;
    160       vector<VkDeviceMemory> storageBuffersMemory_modelPipeline;
    161       vector<VkDescriptorBufferInfo> storageBufferInfoList_modelPipeline;
    162 
    163159      UBO_VP_mats object_VP_mats;
    164160      SSBO_ModelObject so_Object;
     
    171167      vector<VkDescriptorBufferInfo> uniformBufferInfoList_shipPipeline;
    172168
    173       vector<VkBuffer> storageBuffers_shipPipeline;
    174       vector<VkDeviceMemory> storageBuffersMemory_shipPipeline;
    175       vector<VkDescriptorBufferInfo> storageBufferInfoList_shipPipeline;
    176 
    177169      UBO_VP_mats ship_VP_mats;
    178170      SSBO_ModelObject so_Ship;
     
    184176      vector<VkDeviceMemory> uniformBuffersMemory_asteroidPipeline;
    185177      vector<VkDescriptorBufferInfo> uniformBufferInfoList_asteroidPipeline;
    186 
    187       vector<VkBuffer> storageBuffers_asteroidPipeline;
    188       vector<VkDeviceMemory> storageBuffersMemory_asteroidPipeline;
    189       vector<VkDescriptorBufferInfo> storageBufferInfoList_asteroidPipeline;
    190178
    191179      UBO_VP_mats asteroid_VP_mats;
Note: See TracChangeset for help on using the changeset viewer.