Changeset c163d81 in opengl-game for vulkan-game.hpp
- Timestamp:
- May 19, 2021, 7:16:37 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 58453c3
- Parents:
- 1abebc1
- git-author:
- Dmitry Portnoy <dportnoy@…> (05/19/21 19:16:33)
- git-committer:
- Dmitry Portnoy <dportnoy@…> (05/19/21 19:16:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r1abebc1 rc163d81 319 319 BufferSet storageBuffers_modelPipeline; 320 320 VulkanBuffer<SSBO_ModelObject> objects_modelPipeline; 321 BufferSet uniformBuffers_modelPipeline; 321 322 322 323 BufferSet storageBuffers_shipPipeline; 323 324 VulkanBuffer<SSBO_ModelObject> objects_shipPipeline; 325 BufferSet uniformBuffers_shipPipeline; 324 326 325 327 BufferSet storageBuffers_asteroidPipeline; 326 328 VulkanBuffer<SSBO_Asteroid> objects_asteroidPipeline; 329 BufferSet uniformBuffers_asteroidPipeline; 327 330 328 331 BufferSet storageBuffers_laserPipeline; 329 332 VulkanBuffer<SSBO_Laser> objects_laserPipeline; 333 BufferSet uniformBuffers_laserPipeline; 330 334 331 335 BufferSet storageBuffers_explosionPipeline; 332 336 VulkanBuffer<SSBO_Explosion> objects_explosionPipeline; 337 BufferSet uniformBuffers_explosionPipeline; 333 338 334 339 // TODO: Maybe make the ubo objects part of the pipeline class since there's only one ubo … … 342 347 vector<SceneObject<ModelVertex, SSBO_ModelObject>> modelObjects; 343 348 344 vector<VkBuffer> uniformBuffers_modelPipeline;345 vector<VkDeviceMemory> uniformBuffersMemory_modelPipeline;346 vector<VkDescriptorBufferInfo> uniformBufferInfoList_modelPipeline;347 348 349 UBO_VP_mats object_VP_mats; 349 350 350 351 vector<SceneObject<ModelVertex, SSBO_ModelObject>> shipObjects; 351 352 352 vector<VkBuffer> uniformBuffers_shipPipeline;353 vector<VkDeviceMemory> uniformBuffersMemory_shipPipeline;354 vector<VkDescriptorBufferInfo> uniformBufferInfoList_shipPipeline;355 356 353 UBO_VP_mats ship_VP_mats; 357 354 358 355 vector<SceneObject<ModelVertex, SSBO_Asteroid>> asteroidObjects; 359 356 360 vector<VkBuffer> uniformBuffers_asteroidPipeline;361 vector<VkDeviceMemory> uniformBuffersMemory_asteroidPipeline;362 vector<VkDescriptorBufferInfo> uniformBufferInfoList_asteroidPipeline;363 364 357 UBO_VP_mats asteroid_VP_mats; 365 358 366 359 vector<SceneObject<LaserVertex, SSBO_Laser>> laserObjects; 367 360 368 vector<VkBuffer> uniformBuffers_laserPipeline;369 vector<VkDeviceMemory> uniformBuffersMemory_laserPipeline;370 vector<VkDescriptorBufferInfo> uniformBufferInfoList_laserPipeline;371 372 361 UBO_VP_mats laser_VP_mats; 373 362 374 363 vector<SceneObject<ExplosionVertex, SSBO_Explosion>> explosionObjects; 375 376 vector<VkBuffer> uniformBuffers_explosionPipeline;377 vector<VkDeviceMemory> uniformBuffersMemory_explosionPipeline;378 vector<VkDescriptorBufferInfo> uniformBufferInfoList_explosionPipeline;379 364 380 365 UBO_Explosion explosion_UBO; … … 448 433 449 434 void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, VkMemoryPropertyFlags properties, 450 vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, 451 vector<VkDescriptorBufferInfo>& bufferInfoList); 435 BufferSet& set); 452 436 453 437 // TODO: See if it makes sense to rename this to resizeBufferSet() and use it to resize other types of buffers as well
Note:
See TracChangeset
for help on using the changeset viewer.