Changeset c074f81 in opengl-game for vulkan-game.hpp
- Timestamp:
- Jun 8, 2021, 2:29:12 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 8aa4888
- Parents:
- 567fa88
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r567fa88 rc074f81 39 39 // TODO: Consider if there is a better way of dealing with all the vertex types and ssbo types, maybe 40 40 // by consolidating some and trying to keep new ones to a minimum 41 42 struct OverlayVertex {43 vec3 pos;44 vec2 texCoord;45 };46 41 47 42 struct ModelVertex { … … 546 541 void VulkanGame::updateBufferSet(BufferSet& set, size_t objIndex, SSBOType& ssbo) { 547 542 for (size_t i = 0; i < set.memory.size(); i++) { 548 VulkanUtils::copyDataToMemory(device, ssbo, set.memory[i], objIndex * sizeof(SSBOType));543 VulkanUtils::copyDataToMemory(device, &ssbo, set.memory[i], objIndex * sizeof(SSBOType), sizeof(ssbo), false); 549 544 } 550 545 }
Note:
See TracChangeset
for help on using the changeset viewer.