Changeset 2da64ef in opengl-game for graphics-pipeline_vulkan.hpp
- Timestamp:
- Feb 19, 2020, 4:47:41 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 3b84bb6
- Parents:
- 860a0da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graphics-pipeline_vulkan.hpp
r860a0da r2da64ef 74 74 VkQueue graphicsQueue); 75 75 76 void updateObject(size_t objIndex, SSBOType& ssbo); 77 76 78 void cleanup(); 77 79 void cleanupBuffers(); 78 79 StorageBufferSet storageBufferSet;80 80 81 81 private: … … 108 108 size_t numObjects; 109 109 size_t objectCapacity; 110 111 StorageBufferSet storageBufferSet; 110 112 111 113 VkShaderModule createShaderModule(const vector<char>& code); … … 491 493 492 494 template<class VertexType, class SSBOType> 495 void GraphicsPipeline_Vulkan<VertexType, SSBOType>::updateObject(size_t objIndex, SSBOType& ssbo) { 496 if (!is_same_v<SSBOType, void*>) { 497 for (size_t i = 0; i < storageBufferSet.memory.size(); i++) { 498 VulkanUtils::copyDataToMemory(device, storageBufferSet.memory[i], objIndex, ssbo); 499 } 500 } 501 } 502 503 template<class VertexType, class SSBOType> 493 504 void GraphicsPipeline_Vulkan<VertexType, SSBOType>::cleanup() { 494 505 vkDestroyPipeline(device, pipeline, nullptr);
Note:
See TracChangeset
for help on using the changeset viewer.