Changeset fa9fa1c in opengl-game for vulkan-ref.cpp
- Timestamp:
- Sep 27, 2019, 8:53:27 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 7563b8a, a0da009
- Parents:
- 0e09340
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-ref.cpp
r0e09340 rfa9fa1c 179 179 /*** START OF REFACTORED CODE ***/ 180 180 VkRenderPass renderPass; 181 182 VkCommandPool commandPool; 181 183 /*** END OF REFACTORED CODE ***/ 182 183 VkCommandPool commandPool;184 184 vector<VkCommandBuffer> commandBuffers; 185 185 … … 322 322 createImageViews(); 323 323 createRenderPass(); 324 325 createCommandPool(); 324 326 /*** END OF REFACTORED CODE ***/ 325 326 createCommandPool();327 327 328 328 createImageResources("textures/texture.jpg", textureImage, textureImageMemory, textureImageView); … … 1025 1025 } 1026 1026 1027 /*** START OF REFACTORED CODE ***/ 1027 1028 void createCommandPool() { 1028 1029 QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice); … … 1038 1039 } 1039 1040 1040 /*** START OF REFACTORED CODE ***/1041 1041 QueueFamilyIndices findQueueFamilies(VkPhysicalDevice device) { 1042 1042 QueueFamilyIndices indices; … … 1893 1893 } 1894 1894 1895 /*** START OF REFACTORED CODE ***/ 1895 1896 vkDestroyCommandPool(device, commandPool, nullptr); 1896 /*** START OF REFACTORED CODE ***/1897 1897 vkDestroyDevice(device, nullptr); 1898 1898 vkDestroySurfaceKHR(instance, surface, nullptr);
Note:
See TracChangeset
for help on using the changeset viewer.