Refactored code in Tutorial 05 (changed order of operaions - moved rendering resources creation to the beginning).

This commit is contained in:
plapins
2016-07-05 00:20:14 +02:00
parent 05959fd7e5
commit 1570a40314
4 changed files with 112 additions and 118 deletions

View File

@@ -474,9 +474,9 @@ namespace ApiWithoutSecrets {
bool Tutorial04::CreateSemaphores() {
VkSemaphoreCreateInfo semaphore_create_info = {
VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO, // VkStructureType sType
nullptr, // const void* pNext
0 // VkSemaphoreCreateFlags flags
VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO, // VkStructureType sType
nullptr, // const void* pNext
0 // VkSemaphoreCreateFlags flags
};
for( size_t i = 0; i < Vulkan.RenderingResources.size(); ++i ) {