Explorar o código

Forgot to format the source

Panagiotis Christopoulos Charitos %!s(int64=9) %!d(string=hai) anos
pai
achega
dccc31f039
Modificáronse 3 ficheiros con 13 adicións e 13 borrados
  1. 7 7
      src/gr/vulkan/Fence.cpp
  2. 1 1
      src/gr/vulkan/GrManagerImpl.cpp
  3. 5 5
      src/gr/vulkan/Semaphore.cpp

+ 7 - 7
src/gr/vulkan/Fence.cpp

@@ -25,28 +25,28 @@ Fence* FenceFactory::newFence()
 	LockGuard<Mutex> lock(m_mtx);
 
 	Fence* out = nullptr;
-	
+
 	if(m_fenceCount > 0)
 	{
 		U count = m_fenceCount;
 		while(count--)
 		{
-			VkResult status = 
+			VkResult status =
 				vkGetFenceStatus(m_dev, m_fences[count]->getHandle());
 			if(status == VK_SUCCESS)
 			{
 				out = m_fences[count];
 				ANKI_VK_CHECKF(
 					vkResetFences(m_dev, 1, &m_fences[count]->getHandle()));
-			
-				// Pop it	
+
+				// Pop it
 				for(U i = count; i < m_fenceCount - 1; ++i)
 				{
 					m_fences[i] = m_fences[i + 1];
 				}
-		
+
 				--m_fenceCount;
-				
+
 				break;
 			}
 			else if(status != VK_NOT_READY)
@@ -55,7 +55,7 @@ Fence* FenceFactory::newFence()
 			}
 		}
 	}
-	
+
 	if(out == nullptr)
 	{
 		// Create a new one

+ 1 - 1
src/gr/vulkan/GrManagerImpl.cpp

@@ -822,7 +822,7 @@ void GrManagerImpl::endFrame()
 
 //==============================================================================
 void GrManagerImpl::resetFrame(PerFrame& frame)
-{	
+{
 	frame.m_presentFence.reset(nullptr);
 	frame.m_acquireSemaphore.reset(nullptr);
 	frame.m_renderSemaphore.reset(nullptr);

+ 5 - 5
src/gr/vulkan/Semaphore.cpp

@@ -50,15 +50,15 @@ SemaphorePtr SemaphoreFactory::newInstance()
 			if(!m_sems[count]->m_fence)
 			{
 				out = m_sems[count];
-		
-				// Pop it		
+
+				// Pop it
 				for(U i = count; i < m_semCount - 1; ++i)
 				{
 					m_sems[i] = m_sems[i + 1];
 				}
-				
+
 				--m_semCount;
-				
+
 				break;
 			}
 		}
@@ -90,7 +90,7 @@ void SemaphoreFactory::destroySemaphore(Semaphore* s)
 
 	m_sems[m_semCount] = s;
 	++m_semCount;
-	
+
 	releaseFences();
 }