Changeset 5ea0a37 in opengl-game for vulkan-game.hpp
- Timestamp:
- Jun 11, 2021, 10:05:25 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 90880fb
- Parents:
- 6486ba8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r6486ba8 r5ea0a37 432 432 bool copyData); 433 433 434 template<class SSBOType>435 void updateBufferSet(BufferSet& set, size_t objIndex, SSBOType& ssbo);436 437 434 // TODO: Since addObject() returns a reference to the new object now, 438 435 // stop using objects.back() to access the object that was just created … … 490 487 491 488 // End of specialized no-op functions 492 493 // TODO: See if it makes sense to pass in the current swapchain index instead of updating all of them494 template<class SSBOType>495 void VulkanGame::updateBufferSet(BufferSet& set, size_t objIndex, SSBOType& ssbo) {496 for (size_t i = 0; i < set.memory.size(); i++) {497 VulkanUtils::copyDataToMemory(device, &ssbo, set.memory[i], objIndex * sizeof(SSBOType), sizeof(ssbo), false);498 }499 }500 489 501 490 // TODO: Right now, it's basically necessary to pass the identity matrix in for ssbo.model and to change
Note:
See TracChangeset
for help on using the changeset viewer.