Changeset 5ea0a37 in opengl-game for sdl-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
-
sdl-game.hpp
r6486ba8 r5ea0a37 300 300 bool copyData); 301 301 302 template<class SSBOType>303 void updateBufferSet(BufferSet& set, size_t objIndex, SSBOType& ssbo);304 305 302 // TODO: Since addObject() returns a reference to the new object now, 306 303 // stop using objects.back() to access the object that was just created … … 338 335 void quitGame(); 339 336 }; 340 341 // TODO: See if it makes sense to pass in the current swapchain index instead of updating all of them342 template<class SSBOType>343 void VulkanGame::updateBufferSet(BufferSet& set, size_t objIndex, SSBOType& ssbo) {344 for (size_t i = 0; i < set.memory.size(); i++) {345 VulkanUtils::copyDataToMemory(device, &ssbo, set.memory[i], objIndex * sizeof(SSBOType), sizeof(ssbo), false);346 }347 }348 337 349 338 // 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.