Changeset 5049354 in opengl-game
- Timestamp:
- Apr 7, 2021, 3:02:50 PM (3 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 914bb99
- Parents:
- db2d995
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
graphics-pipeline_vulkan.hpp
rdb2d995 r5049354 547 547 if (!is_same_v<SSBOType, void*>) { 548 548 for (size_t i = 0; i < storageBufferSet.memory.size(); i++) { 549 VulkanUtils::copyDataToMemory(this->device, storageBufferSet.memory[i], objIndex , ssbo);549 VulkanUtils::copyDataToMemory(this->device, storageBufferSet.memory[i], objIndex * sizeof(SSBOType), ssbo); 550 550 } 551 551 } -
vulkan-utils.hpp
rdb2d995 r5049354 135 135 void* data; 136 136 137 vkMapMemory(device, bufferMemory, offset * sizeof(DataType), sizeof(DataType), 0, &data);137 vkMapMemory(device, bufferMemory, offset, sizeof(DataType), 0, &data); 138 138 memcpy(data, &srcData, sizeof(DataType)); 139 139 vkUnmapMemory(device, bufferMemory);
Note:
See TracChangeset
for help on using the changeset viewer.